"use client";

import { useTranslations } from "next-intl";
import { Map } from "lucide-react";
import { EmptyState } from "@/shared/components/ui/empty-state";

export default function CurriculumMapError() {
  const t = useTranslations("lessonPreparation");
  return (
    <div className="p-8">
      <EmptyState
        icon={Map}
        title={t("analytics.loadFailed")}
        description={t("error.loadFailedDesc")}
        action={{ label: t("error.retry"), onClick: () => window.location.reload() }}
        className="border-none shadow-none"
      />
    </div>
  );
}