import { useThemeColor } from "@/hooks/use-theme-color"; import { FontAwesome5 } from "@expo/vector-icons"; import { useMemo } from "react"; import { Select, SelectBackdrop, SelectContent, SelectDragIndicator, SelectDragIndicatorWrapper, SelectInput, SelectItem, SelectPortal, SelectTrigger } from "../select"; type SelectOption = { label: string; value: string; } interface CustomSelectProps { placeholder?: string; options: SelectOption[], noneOption?: SelectOption; defaultValue?: string; selectedValue?:string; onValueChange?: (value: string) => void; className?: string; } const CustomSelect = ({ options, onValueChange, defaultValue, selectedValue, noneOption, className, placeholder = "Select option" }: CustomSelectProps) => { const optionsComputed = useMemo(() => { if(noneOption) return [noneOption, ...options]; return options; }, [options, noneOption]); const backgroundColor = useThemeColor({ }, "background"); const metaColor = useThemeColor({}, "meta"); return ( ) } export default CustomSelect;