import React, { FC } from 'react'; import { useTranslation } from 'react-i18next'; import SearchPageForm from './SearchPageForm'; import AppContainer from '../../client/services/AppContainer'; type Props = { searchingKeyword: string, appContainer: AppContainer, onSearchInvoked: (data : any[]) => boolean, onExcludeUsersHome?: () => void, onExcludeTrash?: () => void, } const SearchControl: FC = (props: Props) => { // Temporaly workaround for lint error // later needs to be fixed: SearchControl to typescript componet const SearchPageFormTypeAny : any = SearchPageForm; const { t } = useTranslation(''); const onExcludeUsersHome = () => { if (props.onExcludeUsersHome != null) { props.onExcludeUsersHome(); } }; const onExcludeTrash = () => { if (props.onExcludeTrash != null) { props.onExcludeTrash(); } }; return (
{/* TODO: replace the following elements deleteAll button , relevance button and include specificPath button component */}
onExcludeUsersHome()} />
onExcludeTrash()} />
); }; export default SearchControl;