import { Loader2 } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import LoadErrorState from '@/components/LoadErrorState';
export default function EntityLoadState({
error = false,
onRetry,
}: {
error?: boolean;
onRetry?: () => void;
}) {
const { t } = useTranslation();
if (error) return
{t('common.loading')}