import { Checkbox, FormControlLabel, FormGroup, FormLabel } from "@mui/material" import type { Meta, StoryObj } from "@storybook/react" import { useArgs } from "storybook/internal/preview-api" import { RadioGroup } from "@/print/components/PrintComponents" const meta: Meta = { title: "Form/RadioGroup", component: RadioGroup } export default meta type Story = StoryObj export const MultipleCheckboxes: Story = { render: () => { const [args, updateArgs] = useArgs<{ date: boolean; north: boolean; scale: boolean; legend: boolean }>() return ( Display updateArgs({ date: !args.date })} />} label="Date" /> updateArgs({ north: !args.north })} />} label="North Arrow" /> updateArgs({ scale: !args.scale })} />} label="Scale" /> updateArgs({ legend: !args.legend })} />} label="Legend" /> ) }, args: { date: true, north: true, scale: true, legend: false } as any } export const SingleCheckbox: Story = { render: () => { const [{ checked }, updateArgs] = useArgs<{ checked: boolean }>() return ( Resolution updateArgs({ checked: !checked })} />} label="High resolution" /> ) }, args: { checked: false } as any }