import { Button, Result } from 'antd';
import { useTranslation } from 'react-i18next';

import { useAppNavigate } from '@/hooks/useAppNavigate';

const Forbidden = () => {
    const navigate = useAppNavigate();
    const { t } = useTranslation();

    return (
        <Result
            status="403"
            title={t('pages.error.403.title')}
            subTitle={t('pages.error.403.subtitle')}
            extra={
                <Button type="primary" onClick={() => navigate('home')}>
                    {t('pages.error.403.backHome')}
                </Button>
            }
        />
    );
};

export default Forbidden;
