import { useFieldContext } from ".."; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "../../../components/ui/select"; import { FieldErrors } from "./FieldErrors"; import { Label } from "../../../components/ui/label"; 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 (
); };