UNPKG

@qite/tide-booking-component

Version:

React Booking wizard & Booking product component for Tide

16 lines (15 loc) 564 B
import React from 'react'; import { SortByType, SortingOption } from '../../types'; import { PickerItem } from '../../../shared/types'; interface ItemPickerProps { items: PickerItem[] | SortByType[] | SortingOption[]; selection: string | undefined; selectedSortByType?: SortByType | null; label: string; placeholder: string; classModifier: string; valueFormatter?: (value: string, direction?: string) => string; onPick: (picked: string, direction?: string) => void; } declare const ItemPicker: React.FC<ItemPickerProps>; export default ItemPicker;