import type { Meta, StoryObj } from "@storybook/react"; import { DemoButton } from "./_demo-primitives.js"; const meta: Meta = { title: "UI / Feedback / EmptyState", }; export default meta; type Story = StoryObj; function EmptyState({ title, body, action, illustration, }: { title: string; body: string; action?: React.ReactNode; illustration?: React.ReactNode; }) { return (
{illustration}

{title}

{body}

{action}
); } const Inbox = () => ( ); export const NoData: Story = { name: "No data", render: () => ( } title="No projects yet" body="Create your first project to start collaborating with your team." action={Create project} /> ), }; export const NoResults: Story = { name: "No search results", render: () => ( ), }; export const ErrorState: Story = { name: "Error state", render: () => ( Retry} /> ), };