import { playgroundParameters } from "@charcuterie/storybook-config/story-parameters" import type { Meta, StoryObj } from "@storybook/react" import { useState } from "react" import { Button } from "../Button/Button.tsx" import { ContainerBoard } from "../board.storyHelpers.tsx" import { WeekdayIndicator } from "./WeekdayIndicator.tsx" const meta = { title: "Components/Data/WeekdayIndicator", component: WeekdayIndicator, args: { days: [0, 1, 2, 3], label: "Repeats" }, argTypes: { categorical: { control: "select", options: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], }, }, } satisfies Meta export default meta type Story = StoryObj export const Playground: Story = { parameters: playgroundParameters, } export const AllVariants: Story = { render: (args) => (
{([1, 3, 5, 7, 9] as const).map((categorical) => ( ))}
), } export const AllStates: Story = { render: () => (
), } export const Responsive: Story = { render: (args) => ( ), } export const Interactive: Story = { render: () => { const [isWeekend, setIsWeekend] = useState(false) return (
) }, }