// src/components/under-construction-view.tsx
// Full "En construction" screen (app header + breadcrumb + placeholder), shared
// by the gated route segment layouts and the /under-construction page. Rendering
// this in a segment layout (instead of a proxy rewrite) avoids Next's RSC
// self-fetch behind the TLS proxy that 500'd on https://localhost:3000.
import { getTranslations } from "next-intl/server";
import { DashboardHeader } from "@/components/dashboard-header";
import {
  Breadcrumb,
  BreadcrumbItem,
  BreadcrumbList,
  BreadcrumbPage,
} from "@/components/ui/breadcrumb";
import { UnderConstruction } from "@/components/under-construction";

export async function UnderConstructionView() {
  const t = await getTranslations("Construction");
  return (
    <>
      <DashboardHeader>
        <Breadcrumb>
          <BreadcrumbList>
            <BreadcrumbItem>
              <BreadcrumbPage>{t("badge")}</BreadcrumbPage>
            </BreadcrumbItem>
          </BreadcrumbList>
        </Breadcrumb>
      </DashboardHeader>
      <UnderConstruction />
    </>
  );
}
