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