// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {ScrollableArea} from '@astryxdesign/core/ScrollableArea'; import {Card} from '@astryxdesign/core/Card'; import {HStack, VStack} from '@astryxdesign/core/Layout'; import {Heading, Text} from '@astryxdesign/core/Text'; import {Link} from '@astryxdesign/core/Link'; const FILES = [ {id: 'brief', title: 'Q3 launch brief', meta: 'Edited 2 days ago'}, {id: 'pricing', title: 'Pricing rework', meta: 'Edited 3 days ago'}, {id: 'onboarding', title: 'Onboarding flow v4', meta: 'Edited 4 days ago'}, {id: 'macros', title: 'Support macros', meta: 'Edited last week'}, {id: 'brand', title: 'Brand refresh', meta: 'Priya Raman'}, {id: 'checkout', title: 'Checkout audit', meta: 'Tomas Lindqvist'}, {id: 'partner', title: 'Partner deck', meta: 'Ines Okafor'}, ]; export default function ScrollableAreaInlineRail() { return ( Workspace files Recently opened View all {/* isFullBleed lets the rail reach the card's edges, while the content padding keeps the first card aligned with the heading above it and leaves room under the cards for the scrollbar. */} {FILES.map(file => ( {file.title} {file.meta} ))} ); }