import { playgroundParameters } from "@charcuterie/storybook-config/story-parameters"
import type { Meta, StoryObj } from "@storybook/react"
import { controlSizeArgType } from "../argTypes.storyHelpers.ts"
import {
ContainerBoard,
StoryCell,
StoryGrid,
StoryRow,
StorySection,
} from "../board.storyHelpers.tsx"
import {
RedoIcon,
SettingsIcon,
UndoIcon,
} from "../icons.storyHelpers.tsx"
import { IconButton } from "./IconButton.tsx"
/**
* The library ships **no icons** — lucide is the fleet recommendation
* and `children` is whatever the app already has, so these are
* story-only SVGs.
*
* `RawGlyph` below keeps plex-channels' actual `↶` for comparison:
* the glyph is unchanged, the *name* is what this component adds.
*/
const UNDO_ICON =
const meta = {
title: "Components/Actions/IconButton",
component: IconButton,
parameters: { layout: "padded" },
argTypes: { size: controlSizeArgType },
args: {
appearance: "ghost",
isDisabled: false,
isLoading: false,
size: "md",
},
} satisfies Meta
export default meta
type Story = StoryObj
/**
* The name is the whole component. plex-channels renders `↶` into a
* bare `