Skip to content

Automate browser based workflows with AI

419 B
Raw Blame
import type { ReactNode } from "react";

import { usePageSlots } from "@/store/PageSlots";

type Props = {
  children: ReactNode;
};

function CreatorDirectoryBoundary({ children }: Props) {
  const { workflowCreatorDirectory: CreatorDirectory } = usePageSlots();
  return CreatorDirectory ? (
    <CreatorDirectory>{children}</CreatorDirectory>
  ) : (
    <>{children}</>
  );
}

export { CreatorDirectoryBoundary };