"use client"; import { MulticaIcon } from "@multica/ui/components/common/multica-icon"; /** * 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 }) { return (
{name ? (

Loading {name}

) : (

Loading workspace…

)}
); }