'use client'; import { Item, ItemIndicator, ItemText } from '@radix-ui/react-select'; import { clsx } from 'clsx'; import { ComponentPropsWithoutRef, ReactNode } from 'react'; import { menuItemRecipe } from '../menu'; import { selectItemIndicator } from './select-item.css'; import type { Tone } from '../../styles'; export type SelectItemProps = ComponentPropsWithoutRef & { indicator?: ReactNode; tone?: Tone; }; export function SelectItem({ children, indicator, tone, ...props }: SelectItemProps) { return ( {indicator ||
} {children} ); }