import type { Meta, StoryObj } from '@storybook/react'; import { ContactForm, type ContactFormSubmit } from './contact-form'; const meta = { component: ContactForm, title: 'Organisms/Forms/Contact', } satisfies Meta; export default meta; type Story = StoryObj; const sendMail: ContactFormSubmit = () => { console.log('Mail sent!'); return undefined; }; export const Example: Story = { args: { onSubmit: sendMail, }, };