import type { Meta, StoryObj } from '@storybook/react-vite' import { PartCard } from './PartCard' const meta = { title: 'Components/PartCard', component: PartCard, parameters: { layout: 'padded' }, decorators: [(Story) =>
{Story()}
], } satisfies Meta export default meta type Story = StoryObj /** A part of something longer, under the header of what it is part of. */ export const Default: Story = { args: { state: 'ready', kind: 'issue', heading: 'Item one', partKey: 'ABC-2', href: '#part', children: ( <>

A heading in the part

The blocks of the part, as they are now. They change when the text they came from changes.

), }, } /** Still being looked up. */ export const Loading: Story = { args: { state: 'loading', kind: 'issue' } } /** The part, or what it is part of, is gone or not this reader's to see. */ export const NotAvailable: Story = { args: { state: 'unavailable', kind: 'issue', noun: 'Item', openIn: { app: 'App one', href: '#elsewhere' } } }