Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

523 B
Raw Blame
import type { PropsWithChildren } from "react";

export const BoardTourGate = async ({ enabled, children }: PropsWithChildren<{ enabled: boolean }>) => {
  if (!enabled) return children;

  // Native server-side import keeps the completed-user client graph lean while
  // giving first-time users one stable board tree instead of swapping a
  // Suspense fallback after the board grid has mounted.
  const { BoardTourProvider } = await import("./board-tour");
  return <BoardTourProvider>{children}</BoardTourProvider>;
};