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.

710 B
Raw Blame
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { Suspense } from "react";
import { BrandWorkspace } from "@/components/ads/brand-workspace";
import { recordExists } from "@/server/records";

export const metadata: Metadata = { title: "Ads Studio" };

async function Workspace({ params }: { params: PageProps<"/ads/[brandId]">["params"] }) {
  const { brandId } = await params;
  if (!recordExists({ kind: "brand", ids: [brandId] })) notFound();
  return <BrandWorkspace brandId={brandId} />;
}

export default function Page({ params }: PageProps<"/ads/[brandId]">) {
  return (
    <Suspense fallback={null}>
      <Workspace params={params} />
    </Suspense>
  );
}