type SelectFieldProps = { value: T; onChange: (value: T) => void; options: { value: T; label: string }[]; className?: string; }; /** * SelectField - A dropdown styled consistently with input fields * Generic component that works with any string-based type (including string literals and enums) * * @example * // With UserRole type * * value={user.role} * onChange={(role) => setUser({...user, role})} * options={UserRoleHelper.getRoleOptions()} * /> * * @example * // With plain strings * * value={status} * onChange={setStatus} * options={[{value: "active", label: "Active"}, {value: "inactive", label: "Inactive"}]} * /> */ export default function SelectField({ value, onChange, options, className = '' }: SelectFieldProps) { return ( ); }