import { cn } from '@/lib/cn'; import type { SelectHTMLAttributes } from 'react'; interface Option { value: string; label: string; } interface Props extends SelectHTMLAttributes { label?: string; options: Option[]; } export function Select({ label, options, className, id, ...rest }: Props) { const selectId = id || label?.toLowerCase().replace(/\s+/g, '-'); return (
{label && ( )}
); }