feat: guest information form enter details
This commit is contained in:
11
types/components/enterDetails/details.ts
Normal file
11
types/components/enterDetails/details.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { z } from "zod"
|
||||
|
||||
import { detailsSchema } from "@/components/HotelReservation/EnterDetails/Details/schema"
|
||||
|
||||
import { User } from "@/types/user"
|
||||
|
||||
export interface DetailsSchema extends z.output<typeof detailsSchema> {}
|
||||
|
||||
export interface DetailsProps {
|
||||
user: User | null
|
||||
}
|
||||
@@ -15,40 +15,43 @@ export interface SearchListProps {
|
||||
getItemProps: PropGetters<unknown>["getItemProps"]
|
||||
getMenuProps: PropGetters<unknown>["getMenuProps"]
|
||||
isOpen: boolean
|
||||
handleClearSearchHistory: () => void
|
||||
highlightedIndex: HighlightedIndex
|
||||
locations: Locations
|
||||
search: string
|
||||
searchHistory: Locations | null
|
||||
}
|
||||
|
||||
export interface ListProps {
|
||||
getItemProps: PropGetters<unknown>["getItemProps"]
|
||||
highlightedIndex: HighlightedIndex
|
||||
export interface ListProps
|
||||
extends Pick<
|
||||
SearchListProps,
|
||||
"getItemProps" | "highlightedIndex" | "locations"
|
||||
> {
|
||||
initialIndex?: number
|
||||
label?: string
|
||||
locations: Locations
|
||||
}
|
||||
|
||||
export interface ListItemProps {
|
||||
getItemProps: PropGetters<unknown>["getItemProps"]
|
||||
highlightedIndex: HighlightedIndex
|
||||
export interface ListItemProps
|
||||
extends Pick<SearchListProps, "getItemProps" | "highlightedIndex"> {
|
||||
index: number
|
||||
location: Location
|
||||
}
|
||||
|
||||
export interface DialogProps
|
||||
extends React.PropsWithChildren,
|
||||
VariantProps<typeof dialogVariants> {
|
||||
VariantProps<typeof dialogVariants>,
|
||||
Pick<SearchListProps, "getMenuProps"> {
|
||||
className?: string
|
||||
getMenuProps: PropGetters<unknown>["getMenuProps"]
|
||||
}
|
||||
|
||||
export interface ErrorDialogProps extends React.PropsWithChildren {
|
||||
getMenuProps: PropGetters<unknown>["getMenuProps"]
|
||||
}
|
||||
export interface ErrorDialogProps
|
||||
extends React.PropsWithChildren,
|
||||
Pick<SearchListProps, "getMenuProps"> {}
|
||||
|
||||
export interface ClearSearchButtonProps {
|
||||
getItemProps: PropGetters<unknown>["getItemProps"]
|
||||
highlightedIndex: HighlightedIndex
|
||||
export interface ClearSearchButtonProps
|
||||
extends Pick<
|
||||
SearchListProps,
|
||||
"getItemProps" | "handleClearSearchHistory" | "highlightedIndex"
|
||||
> {
|
||||
index: number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user