Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

603 B
Raw Blame
"use client";

import type { ReactNode } from "react";
import { useIsOwner } from "@/lib/api";
import { RelightTool } from "./relight-tool";

/**
 * The Relight app's page: its own tool once that tool's Generate lighting is checked on a GPU (`live`), and for the
 * studio's owner before then; everyone else gets the app's composer (`children`) until it is.
 */
export function RelightGate({ live, app, children }: { live: boolean; app: { name: string; description: string }; children: ReactNode }) {
  const owner = useIsOwner();
  return live || owner ? <RelightTool app={app} /> : <>{children}</>;
}