import type { Meta, StoryObj } from '@storybook/react'; import Box from '@mui/material/Box'; import { FuneralFinderV4 } from './FuneralFinderV4'; const meta: Meta = { title: 'Archive/FuneralFinder V4', component: FuneralFinderV4, parameters: { layout: 'padded', }, args: { onSearch: (params) => { console.log('Search params:', params); }, }, }; export default meta; type Story = StoryObj; /** Default empty state — 3 steps + location ready for input */ export const Default: Story = {}; /** Loading state — CTA shows spinner */ export const Loading: Story = { args: { loading: true }, }; /** Placed inside a dark hero section to preview in context */ export const InsideHero: Story = { decorators: [ (Story) => ( Funeral Arranger Find trusted funeral directors near you ), ], }; /** Constrained width — typical sidebar or narrow column */ export const Narrow: Story = { decorators: [ (Story) => ( ), ], };