import type { Meta, StoryObj } from '@storybook/react'; import { CommentForm, type CommentFormSubmit } from './comment-form'; const meta = { component: CommentForm, title: 'Organisms/Forms/Comment', } satisfies Meta; export default meta; type Story = StoryObj; const saveComment: CommentFormSubmit = () => { console.log('Comment saved!'); return undefined; }; export const Example: Story = { args: { onSubmit: saveComment, }, };