import { useNavigate, useRouter } from '@tanstack/react-router' import { useTranslation } from 'react-i18next' import { cn } from '@/lib/utils' import { Button } from '@/components/ui/button' const FEEDBACK_URL = 'https://github.com/QuantumNous/new-api/issues' type GeneralErrorProps = React.HTMLAttributes & { minimal?: boolean } export function GeneralError({ className, minimal = false, }: GeneralErrorProps) { const { t } = useTranslation() const navigate = useNavigate() const { history } = useRouter() return (
{!minimal && (

500

)} {t('Oops! Something went wrong')} {`:')`}

{t('We apologize for the inconvenience.')}
{' '} {t('Please try again later.')}

{!minimal && (

{t('If this keeps happening, please report it on GitHub Issues.')}

)} {!minimal && (
)}
) }