import React, { forwardRef } from 'react'; import { ChevronDown } from 'lucide-react'; import { classNames } from '@/utils/helpers'; interface SelectOption { value: string; label: string; disabled?: boolean; } interface SelectProps extends Omit, 'children'> { label?: string; error?: string; hint?: string; options: SelectOption[]; placeholder?: string; } export const Select = forwardRef( ({ label, error, hint, options, placeholder, className, id, ...props }, ref) => { const selectId = id || `select-${Math.random().toString(36).slice(2, 9)}`; return (
{label && ( )}
{(error || hint) && (

{error || hint}

)}
); } ); Select.displayName = 'Select'; interface ToggleProps { label?: string; description?: string; checked: boolean; onChange: (checked: boolean) => void; disabled?: boolean; } export const Toggle: React.FC = ({ label, description, checked, onChange, disabled = false, }) => { return ( ); }; export default Select;