import type { SelectHTMLAttributes } from 'react'; interface SelectOption { value: string; label: string; } interface SelectProps extends SelectHTMLAttributes { label?: string; options: SelectOption[]; error?: string; } export const Select = ({ label, options, error, className = '', ...props }: SelectProps) => { return (
{label && ( )} {error && (

{error}

)}
); };