import { Label } from "../../components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "../../components/ui/select"; import { useFieldContext } from "."; import { FieldErrors } from "./Errors.Field"; type SelectOption = { value: string; label: string; }; type SelectFieldProps = { label: string; options: SelectOption[]; placeholder?: string; }; export const SelectField = ({ label, options, placeholder, }: SelectFieldProps) => { const field = useFieldContext(); return (
); };