feat: SW-3145 Moved date component to design system * chore: SW-3145 Moved date component to design system Approved-by: Anton Gunnarsson Approved-by: Matilda Landström
22 lines
464 B
TypeScript
22 lines
464 B
TypeScript
import { Lang } from '@scandic-hotels/common/constants/language'
|
|
import type { RegisterOptions } from 'react-hook-form'
|
|
|
|
export const enum DateName {
|
|
date = 'date',
|
|
day = 'day',
|
|
month = 'month',
|
|
year = 'year',
|
|
}
|
|
export interface DateProps
|
|
extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
labels: {
|
|
day: string
|
|
month: string
|
|
year: string
|
|
errorMessage?: string
|
|
}
|
|
lang: Lang
|
|
name: string
|
|
registerOptions?: RegisterOptions
|
|
}
|