@hhgtech/hhg-components
Version:
Hello Health Group common components
21 lines (20 loc) • 1.16 kB
TypeScript
import React, { Dispatch } from 'react';
import type { DebouncedFunc } from 'lodash';
import { ReducerState, Action } from "../reducer";
import { GATrackingCode, SearchClick } from "../types";
export type Props = {
isMobile: boolean;
state: ReducerState;
dispatch: Dispatch<Action>;
debouncedFetchCitiesByKeyword: DebouncedFunc<(keyword: string) => Promise<void>>;
debouncedFetchSearchResults: DebouncedFunc<(keyword: string, state: ReducerState) => Promise<void>>;
focusLocationInput: () => void;
focusSearchInput: () => void;
renderLocationResults: () => React.ReactNode;
renderSearchResults: () => React.ReactNode;
locationTrackingAttributes?: GATrackingCode;
trackingAttributes?: GATrackingCode;
onSearch?: (info: SearchClick) => void;
initalSearchValue?: string;
};
export declare function SearchInputs({ isMobile, state, dispatch, debouncedFetchCitiesByKeyword, debouncedFetchSearchResults, focusLocationInput, focusSearchInput, renderLocationResults, renderSearchResults, locationTrackingAttributes, trackingAttributes, onSearch, initalSearchValue, }: Props): React.JSX.Element;