import type { Meta, StoryObj } from '@storybook/react-vite' import { GROUP, ITEM, ITEM_UNREAD, LOADING, PAGE, PLACE, ready, SAID, UNAVAILABLE } from './linked.examples' import { LinkRow, LinkUnavailable } from './LinkRow' const meta = { title: 'Components/LinkRow', component: LinkRow, parameters: { layout: 'padded' }, args: { link: ready(ITEM) }, decorators: [(Story) =>
{Story()}
], } satisfies Meta export default meta type Story = StoryObj /** A link alone on its line. Hover it for its card. */ export const Default: Story = {} /** Every kind: the corner says what each one has. */ export const EachKind: Story = { render: () => (
), } /** Something unread in its conversation, to a member: the count shows, with its dot. */ export const Unread: Story = { args: { link: ready(ITEM_UNREAD) } } /** Still being looked up: the row in bars, at the row's height. */ export const Loading: Story = { args: { link: LOADING } } /** Deleted, or not this reader's to see: one line, and where it may still open. */ export const NotAvailable: Story = { args: { link: UNAVAILABLE } } /** The not-available line on its own, as a card or a part draws it too; without `openIn`, no way out. */ export const NotAvailableLine: Story = { render: () => (
), }