"use client"; import { useWarnings } from "@/hooks/use-warnings"; import { WarningCard } from "@/components/warnings/warning-card"; import { PageLoadingSkeleton } from "@/components/states/loading-skeleton"; import { EmptyState } from "@/components/states/empty-state"; import { ErrorState } from "@/components/states/error-state"; import { useI18n } from "@/lib/i18n"; export function WarningsPanel() { const { t } = useI18n(); const { data: warnings, isPending, isError, refetch } = useWarnings(); if (isPending) return ; if (isError) return refetch()} description={t("warnings.error")} />; if (!warnings?.length) return ; return
{warnings.map((warning, index) => )}
; }