import React, { useState } from 'react' import { type Meta, type StoryObj } from '@storybook/react' import { defaultMonthControls } from '../../_docs/controls/defaultMonthControls' import { weekStartsOnControls } from '../../_docs/controls/weekStartsOnControls' import { CalendarSingle } from '../index' const meta = { title: 'Components/Datepickers/Calendars (primitives)/CalendarSingle (primitive)', component: CalendarSingle, argTypes: { ...defaultMonthControls, ...weekStartsOnControls, }, } satisfies Meta export default meta type Story = StoryObj const CalendarSingleTemplate: Story = { render: (args) => { const [selected, setSelected] = useState(args.selected) return }, } export const Playground: Story = { ...CalendarSingleTemplate, parameters: { docs: { canvas: { sourceState: 'shown', }, }, }, }