UNPKG

@hhgtech/hhg-components

Version:
23 lines (22 loc) 790 B
import React, { Dispatch } from 'react'; import { SearchBarSectionItemApi } from "../../../../interfaces/types"; import { ReducerState, Action } from "../reducer"; import { TypeSearch } from "../types"; type SearchResultProps = { state: ReducerState; type: TypeSearch; results: SearchBarSectionItemApi[]; location: string; isLoading: boolean; clientSlug?: string; typeInformation: { [key in TypeSearch]: { name: string; icon: React.ReactNode; slug: string; }; }; dispatch: Dispatch<Action>; }; declare const SearchResult: ({ state, type, results, location, isLoading, typeInformation, clientSlug, dispatch, }: SearchResultProps) => React.JSX.Element; export default SearchResult;