{
/** Optional label rendered above the select */
label?: string
/** Options: array of {value, label} */
options: { value: string; label: string }[]
}
export default function RetroSelect({ label, options, className = '', ...rest }: Props) {
const generatedId = useId()
const selectId = rest.id ?? generatedId
return (
{label && (
)}
)
}