import type { Meta, StoryObj } from "@storybook/react-vite"; import { DraftPickCell } from "./DraftPickCell"; const meta: Meta = { title: "Draft/DraftPickCell", component: DraftPickCell, parameters: { layout: "padded", }, }; export default meta; type Story = StoryObj; const basePickArgs = { pickNumber: 1, round: 1, pickInRound: 1, state: "picked" as const, pick: { participant: { name: "LeBron James" }, sport: { name: "Basketball" }, }, }; export const Upcoming: Story = { args: { pickNumber: 5, round: 1, pickInRound: 5, state: "upcoming", }, }; export const Current: Story = { args: { pickNumber: 5, round: 1, pickInRound: 5, state: "current", }, }; export const Picked: Story = { args: basePickArgs, }; export const PickedElectricCorona: Story = { args: { ...basePickArgs, corona: "electric", }, }; export const PickedEmeraldCorona: Story = { args: { ...basePickArgs, corona: "emerald", }, }; export const PickedAmberCorona: Story = { args: { ...basePickArgs, corona: "amber", }, }; export const PickedCoralCorona: Story = { args: { ...basePickArgs, corona: "coral", }, }; export const PickedLongNames: Story = { name: "Picked — Long Names (truncation)", args: { pickNumber: 12, round: 2, pickInRound: 6, state: "picked", pick: { participant: { name: "Alexander Ovechkin-Washington" }, sport: { name: "Ice Hockey — NHL 2025/26" }, }, }, }; export const AllStatesSideBySide: Story = { name: "All States — Side by Side", render: () => (
), }; export const CoronaVariantsRow: Story = { name: "Corona Variants — Side by Side", render: () => (
{( ["gradient", "electric", "emerald", "amber", "coral"] as const ).map((variant, i) => ( ))}
), };