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.

866 B
Raw Blame
import type { Metadata } from "next";
import { headers } from "next/headers";
import { notFound } from "next/navigation";
import { Suspense } from "react";
import { ChannelView } from "@/components/faceless/channel-view";
import { getModel } from "@/lib/catalog";
import { pickerData } from "@/lib/catalog/faceless";
import { recordFor } from "@/server/records";

export const metadata: Metadata = { title: "Faceless channel" };

async function Channel({ params }: { params: PageProps<"/faceless/[id]">["params"] }) {
  const { id } = await params;
  if (!recordFor({ kind: "channel", ids: [id] }, await headers())) notFound();
  return <ChannelView id={id} picker={pickerData(getModel)} />;
}

export default function Page({ params }: PageProps<"/faceless/[id]">) {
  return (
    <Suspense fallback={null}>
      <Channel params={params} />
    </Suspense>
  );
}