Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

932 B
Raw Blame
import { getTranslations } from "next-intl/server";
import { SkeletonRegion, Skeleton } from "@repowise-dev/ui/ui/skeleton";

/**
 * Architecture is a full-height canvas rather than a `PageShell`, so this
 * mirrors that frame instead: the tab row at its real padding, then the
 * canvas filling the rest. Matching `h-full` / `flex-1` matters more here
 * than elsewhere, because the canvas below sizes itself from this box.
 */
export default async function ArchitectureLoading() {
  const t = await getTranslations("loading");
  return (
    <SkeletonRegion
      className="flex h-full flex-col"
      label={t("architecture")}
    >
      <div className="shrink-0 px-[var(--page-pad)] pt-3">
        <Skeleton className="h-9 w-80 max-w-full rounded-lg" />
      </div>
      <div className="min-h-0 flex-1 p-[var(--page-pad)]">
        <Skeleton className="h-full w-full rounded-lg" />
      </div>
    </SkeletonRegion>
  );
}