import { Box, States, StatesAction, StatesActions, StatesIcon, StatesSubtitle, StatesTitle } from '@rocket.chat/fuselage'; import { useRouter } from '@rocket.chat/ui-contexts'; import type { ReactElement } from 'react'; import { useTranslation } from 'react-i18next'; type NotFoundProps = { title: string; subtitle: string; }; const NotFoundState = ({ title, subtitle }: NotFoundProps): ReactElement => { const { t } = useTranslation(); const router = useRouter(); const handleGoHomeClick = () => { router.navigate('/home'); }; return ( {title} {subtitle} {t('Homepage')} ); }; export default NotFoundState;