@hhgtech/hhg-components
Version:
Hello Health Group common components
43 lines (42 loc) • 2.19 kB
TypeScript
import React from 'react';
import { City, Specialty } from "../../../interfaces/types";
import { GeoLocationPermission, GPSType } from "../../../../interfaces/types";
import { TypeSearch } from "./types";
import { GATrackingCode, SearchClick } from "./types";
export type Props = {
isMobile: boolean;
careApiDomain: string;
careFrontDomain?: string;
initialSearchValue?: string;
initialSelectedCity?: City | undefined | null;
initTypeSearch?: TypeSearch;
initSpecialty?: Specialty | null;
geoLocationPermission?: GeoLocationPermission;
geoLocationCoordinates?: GPSType;
isDebug?: boolean;
askForGeolocationPermission?: boolean;
gaTrackingSearchBar?: GATrackingCode;
gaTrackingLocationSearch?: GATrackingCode;
autoCompleteDisabled?: boolean;
inputSearchPlaceholder?: string;
isOptionAllLocation?: boolean;
hideResults?: string[];
isNavResultItem?: boolean;
hideTabBookingSearch?: string[];
hideSpecialtySelection?: boolean;
hideSpecialtyTab?: boolean;
hidePopularSearchKeys?: boolean;
clientSlug?: string;
triggerSearchWhenChangeFilter?: boolean;
routerPush?: (s: string) => void;
onGeoLocationPermissionChange?: (perm: GeoLocationPermission, coordinates: GPSType) => void;
onSearch?: (data: SearchClick) => void;
onChangeLocation?: (city: City) => void;
};
interface SearchKeywordParams {
locationSlug?: string;
specialtyId?: number;
}
export type OnClickSearchByKeywordFn = (params: SearchKeywordParams) => void;
declare const BookingSearchBarV2: ({ isMobile, careApiDomain, geoLocationPermission: geoLocationPermissionFromProps, geoLocationCoordinates: geoLocationCoordinatesFromProps, initialSelectedCity: initialSelectedCityFromProps, initialSearchValue, initTypeSearch, initSpecialty, careFrontDomain, isDebug, gaTrackingSearchBar, gaTrackingLocationSearch, autoCompleteDisabled, inputSearchPlaceholder, hideTabBookingSearch, hideSpecialtySelection, hideSpecialtyTab, hidePopularSearchKeys, clientSlug, triggerSearchWhenChangeFilter, routerPush, onChangeLocation, }: Props) => React.JSX.Element;
export { BookingSearchBarV2 };