'use client' import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' type IAppUnavailableProps = { isUnknwonReason: boolean errMessage?: string } const AppUnavailable: FC = ({ isUnknwonReason, errMessage, }) => { const { t } = useTranslation() let message = errMessage if (!errMessage) { message = (isUnknwonReason ? t('app.common.appUnkonwError') : t('app.common.appUnavailable')) as string } return (

{(errMessage || isUnknwonReason) ? 500 : 404}

{message}
) } export default React.memo(AppUnavailable)