Files
web/components/TempDesignSystem/Form/Date/date.ts
2024-05-31 14:56:03 +02:00

16 lines
450 B
TypeScript

import type { Control, RegisterOptions } from "react-hook-form"
import type { EditProfileSchema } from "@/components/MyProfile/Profile/Edit/Form/schema"
export const enum DateName {
date = "date",
month = "month",
year = "year",
}
export interface DateProps
extends React.SelectHTMLAttributes<HTMLSelectElement> {
control: Control<EditProfileSchema>
name: keyof EditProfileSchema
registerOptions: RegisterOptions<EditProfileSchema>
}