Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

554 B
Raw Blame
import { Suspense } from 'react';

import { LoadingScreen } from '@/components/custom/loading-screen';
import { useEmbedding } from '@/components/providers/embed-provider';

type InitialDataGuardProps = {
  children: React.ReactNode;
};
export const InitialDataGuard = ({ children }: InitialDataGuardProps) => {
  const { embedState } = useEmbedding();
  return (
    <Suspense
      fallback={
        <LoadingScreen
          brightSpinner={embedState.useDarkBackground}
        ></LoadingScreen>
      }
    >
      {children}
    </Suspense>
  );
};