import type { Meta, StoryObj } from '@storybook/react'; import Box from '@mui/material/Box'; import { FuneralFinderV2 } from './FuneralFinderV2'; const meta: Meta = { title: 'Organisms/FuneralFinderV2', component: FuneralFinderV2, parameters: { layout: 'padded', }, args: { onSearch: (params) => { console.log('Search params:', params); }, }, }; export default meta; type Story = StoryObj; /** Default empty state — all 3 steps ready for input */ export const Default: Story = {}; /** Loading state — CTA shows spinner */ export const Loading: Story = { args: { loading: true }, }; /** Placed below a masthead-style header to preview in context */ export const BelowMasthead: Story = { decorators: [ (Story) => ( {/* Simulated masthead */} Funeral Arranger Find trusted funeral directors near you {/* Widget below masthead */} ), ], }; /** Constrained width — typical sidebar or narrow column */ export const Narrow: Story = { decorators: [ (Story) => ( ), ], };