'use client' import { useTranslations } from 'next-intl' import { AlertCircle } from 'lucide-react' import { Button } from '@/components/ui/button' /** * Shown when a settings section's fetch settled without a row (or errored). * Replaces the old behaviour where a null `settings` object left the loading * skeleton on screen indefinitely: a settled fetch always resolves to either * content or this retryable state. */ export function SettingsLoadError({ onRetry }: { onRetry: () => void }) { const t = useTranslations('common') return (
{t('load_error')}