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.

545 B
Raw Blame
"use client";

import { useSyncExternalStore } from "react";
import { pagePlace, type PagePlace } from "@/lib/page-place";

const never = () => () => {};

/**
 * Where this page is (lib/page-place.ts): on the server's machine ("here"), its network, or a hosted studio. Null until
 * hydrated (the server's HTML can't know): callers draw a fixed-height placeholder then, never the hosted layout.
 */
export function usePagePlace(): PagePlace | null {
  return useSyncExternalStore(never, () => pagePlace(window.location.hostname), () => null);
}