import { Box, States, StatesIcon, StatesTitle, StatesActions, StatesAction } from '@rocket.chat/fuselage'; import type { Keys as IconName } from '@rocket.chat/icons'; import { useTranslation } from 'react-i18next'; type GenericErrorProps = { icon?: IconName; title?: string; buttonTitle?: string; buttonAction?: () => void; }; const GenericError = ({ icon = 'magnifier', title, buttonTitle, buttonAction }: GenericErrorProps) => { const { t } = useTranslation(); return ( {title || t('Something_went_wrong')} {buttonAction && ( {buttonTitle || t('Reload_page')} )} ); }; export default GenericError;