import type { Meta, StoryObj } from '@storybook/react-vite'; import argTypes from '../../../.storybook/sgdsArgTypes'; import Filters from './SearchFilters'; import DatePicker from '../DatePicker'; import Checkbox from '../Checkbox'; const meta = { title: 'Components/Search results/Filters', component: Filters, argTypes: { children: argTypes.children() }, args: { title: 'Content type' } } satisfies Meta; export default meta; type Story = StoryObj; const CONTENT_TYPES = [ { label: 'Advice and guidance', value: 'advice-and-guidance' }, { label: 'Agreement', value: 'agreement' }, { label: 'Consultation analysis', value: 'consultation-analysis' }, { label: 'Consultation paper', value: 'consultation-paper' }, { label: 'Corporate report', value: 'corporate-report' }, { label: 'Correspondence', value: 'correspondence' }, { label: 'FOI/EIR release', value: 'foi-eir-release' }, { label: 'Factsheet', value: 'factsheet' }, { label: 'Form', value: 'form' }, { label: 'Impact assessment', value: 'impact-assessment' }, { label: 'Independent report', value: 'independent-report' }, { label: 'Map', value: 'map' }, { label: 'Minutes', value: 'minutes' }, { label: 'Progress report', value: 'progress-report' }, { label: 'Regulation/directive/order', value: 'regulation-directive-order' }, { label: 'Research and analysis', value: 'research-and-analysis' }, { label: 'Speech/statement', value: 'speech-statement' }, { label: 'Statistics', value: 'statistics' }, { label: 'Strategy/plan', value: 'strategy-plan' }, { label: 'Transparency data', value: 'transparency-data' } ]; export const Default: Story = { render: ({ ...args }) => ( {CONTENT_TYPES.map((type) => ( ))} ) };