"use client" import { memo } from "react" import { suitePublicAsset } from "@/lib/suite/suite-public-asset" import { docsLoadingPhaseLabel, type DocsLoadingPhase, } from "@/lib/drive/docs-loading-phase" import { cn } from "@/lib/utils" export function DocsLoadingSplash({ phase = "connecting", title, className, overlay = false, }: { phase?: DocsLoadingPhase title?: string className?: string /** Keep the same splash mounted as an overlay while the editor loads underneath. */ overlay?: boolean }) { const subtitle = docsLoadingPhaseLabel(phase) return (
ULTIDOCS
{title ? (

{title}

) : null}

{subtitle}

) } export const MemoDocsLoadingSplash = memo(DocsLoadingSplash)