'use client' import type { FC } from 'react' import React from 'react' import { useTranslation } from 'react-i18next' type IAppUnavailableProps = { code?: number isUnknownReason?: boolean unknownReason?: string } const AppUnavailable: FC = ({ code = 404, isUnknownReason, unknownReason, }) => { const { t } = useTranslation() return (

{code}

{unknownReason || (isUnknownReason ? t('share.common.appUnkonwError') : t('share.common.appUnavailable'))}
) } export default React.memo(AppUnavailable)