"use client";

import dynamic from "next/dynamic";

// React Flow + Dagre only ship to the client once someone actually switches
// to "Grafisch" — everyone who stays on the (default) list view never loads
// this bundle.
export const LazyGraphOrgChart = dynamic(() => import("./GraphOrgChart").then((m) => m.GraphOrgChart), {
  ssr: false,
  loading: () => <div className="flex h-[70vh] min-h-[480px] items-center justify-center text-sm text-ink-muted">Lädt Grafik…</div>,
});
