import type { Meta, StoryFn } from '@storybook/react'; import dayjs from 'dayjs'; import { useState } from 'react'; import { ResizePanel } from '../resize-panel/resize-panel'; import { WeekDatePicker } from './week-date-picker'; export default { title: 'UI/Date Picker/Week Date Picker', } satisfies Meta; const _format = 'YYYY-MM-DD'; const Template: StoryFn = args => { const [date, setDate] = useState(dayjs().format(_format)); return (
Selected Date: {date}
{ setDate(dayjs(e, _format).format(_format)); }} />
); }; export const Basic: StoryFn = Template.bind(undefined); Basic.args = {};