import React, { FC } from 'react'; import { useTranslation } from 'react-i18next'; type SearchResultMeta = { took : number, total : number, results: number } type Props = { SearchControl: React.FunctionComponent, SearchResultList: React.FunctionComponent, SearchResultContent: React.FunctionComponent, searchResultMeta: SearchResultMeta, searchingKeyword: string, initialPagingLimit: number, onPagingLimitChanged: (limit: number) => void } const SearchPageLayout: FC = (props: Props) => { const { t } = useTranslation(''); const { SearchResultList, SearchControl, SearchResultContent, searchResultMeta, searchingKeyword, } = props; return (
{t('search_result.result_meta')} {`"${searchingKeyword}"`} {/* Todo: replace "1-10" to the appropriate value */} 1-10 / {searchResultMeta.total || 0}
); }; export default SearchPageLayout;