import { Meta } from '@storybook/react-webpack5'; import { ReactNode } from 'react'; import { Briefcase } from 'lucide-react'; import Docker from '@/assets/ico/vendor/docker.svg?c'; import { IconProps } from '@@/Icon'; import { BoxSelectorItem } from './BoxSelectorItem'; import { BoxSelectorOption } from './types'; const meta: Meta = { title: 'Components/BoxSelector/Item', args: { selected: false, description: 'description', icon: Briefcase, label: 'label', }, }; export default meta; interface ExampleProps { selected?: boolean; description?: string; icon?: IconProps['icon']; label?: string; } function Template({ selected = false, description = 'description', icon, label = 'label', }: ExampleProps) { const option: BoxSelectorOption = { description, icon, id: 'id', label, value: 1, }; return (
{}} option={option} radioName="radio" isSelected={() => selected} />
); } export const Example = Template.bind({}); export function SelectedItem() { return