"use client"; import { MulticaIcon } from "@multica/ui/components/common/multica-icon"; import { useT } from "../i18n"; /** * Full-screen workspace loader. Renders IN PLACE OF the dashboard during: * - initial dashboard mount (workspace resolving from URL slug + list cache) * - workspace switch (refetching core workspace data with the new header) * * This is a GATE, not an overlay — sidebar/content do not render behind it. * The gate only opens once the current workspace id has been set on the * workspace-storage singleton AND all core queries for the target * workspace have been freshly fetched. */ export function WorkspaceLoader({ name }: { name?: string | null }) { const { t } = useT("layout"); return (
{name ? (

{t(($) => $.workspace_loader.loading_named_prefix)}{" "} {name}

) : (

{t(($) => $.workspace_loader.loading_workspace)}

)}
); }