import type { Meta, StoryObj } from '@storybook/react'; import { Empty, EmptyIcon, EmptyTitle, EmptyDescription, EmptyAction, EmptyImage } from './empty'; import { Button } from '../button'; import { Users, SearchX, FileX } from 'lucide-react'; import React from 'react'; type EmptyStoryProps = React.ComponentProps & { title?: string; description?: string; showAction?: boolean; }; const meta: Meta = { title: 'UI/Empty', component: Empty, render: args => , argTypes: { title: { control: 'text', description: 'The title of the empty state.', defaultValue: 'No members yet', }, description: { control: 'text', description: 'The description of the empty state.', defaultValue: 'Get started by adding your first team member to the workspace.', }, showAction: { control: 'boolean', description: 'Whether to show the action button.', defaultValue: true, }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { title: 'No members yet', description: 'Get started by adding your first team member to the workspace.', showAction: true, }, render: ({ title, description, showAction, ...args }) => ( {title} {description} {showAction && ( )} ), }; export const Compact: Story = { render: () => ( No results found Try adjusting your search filters. ), }; export const WithImage: Story = { render: () => ( All caught up! You have no pending tasks for today. ), };