"use client"; import { DatePicker } from "@suphark/ui/components/shared/date/date-picker"; import { FormControl, FormField, FormItem, FormLabel, FormMessage, } from "@suphark/ui/components/ui/form"; import type { Control, FieldValues, Path } from "react-hook-form"; interface FormFieldDateProps { control: Control; name: Path; label: string; placeholder?: string; required?: boolean; disabled?: boolean; className?: string; } export function FormFieldDate({ control, name, label, placeholder = "เลือกวันที่...", required, disabled, className, }: FormFieldDateProps) { return ( ( {label} {required && *} )} /> ); }