import { dialogVariants } from "@/components/Forms/BookingWidget/FormContent/Search/SearchList/Dialog/variants" import type { VariantProps } from "class-variance-authority" import type { PropGetters } from "downshift" import type { Location, Locations } from "../trpc/routers/hotel/locations" export interface SearchProps { locations: Locations } type HighlightedIndex = number | null export interface SearchListProps { getItemProps: PropGetters["getItemProps"] getMenuProps: PropGetters["getMenuProps"] isOpen: boolean highlightedIndex: HighlightedIndex locations: Locations search: string searchHistory: Locations | null } export interface ListProps { getItemProps: PropGetters["getItemProps"] highlightedIndex: HighlightedIndex initialIndex?: number label?: string locations: Locations } export interface ListItemProps { getItemProps: PropGetters["getItemProps"] highlightedIndex: HighlightedIndex index: number location: Location } export interface DialogProps extends React.PropsWithChildren, VariantProps { className?: string getMenuProps: PropGetters["getMenuProps"] } export interface ErrorDialogProps extends React.PropsWithChildren { getMenuProps: PropGetters["getMenuProps"] } export interface ClearSearchButtonProps { getItemProps: PropGetters["getItemProps"] highlightedIndex: HighlightedIndex index: number }