import { useId, type SelectHTMLAttributes } from "react"; export interface SelectOption { value: string; label: string; } export interface SelectProps extends SelectHTMLAttributes { label?: string; options: SelectOption[]; } export function Select({ label, options, id, className = "", ...rest }: SelectProps) { const reactId = useId(); const selectId = id ?? `select-${reactId}`; return (
{label && }
); }