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.

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

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

  const { ManageTourProvider } = await import("./manage-tour");
  return <ManageTourProvider isAdmin={isAdmin}>{children}</ManageTourProvider>;
};