Some checks failed
build-images / web (push) Has been cancelled
vision2026-ci / Python SDK resource tests (push) Has been cancelled
build-images / api (push) Has been cancelled
build-images / worker-gpu (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Has been cancelled
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Has been cancelled
codeql / Analyze (javascript-typescript) (push) Has been cancelled
codeql / Analyze (python) (push) Has been cancelled
perf / API hot-path micro-smoke (budgeted) (push) Has been cancelled
perf / Desktop engine crates (release build check) (push) Has been cancelled
vision2026-ci / API phase modules (ruff + pytest) (push) Has been cancelled
vision2026-ci / Alembic upgrade + drift check (push) Has been cancelled
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Has been cancelled
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
76 lines
2.4 KiB
TypeScript
76 lines
2.4 KiB
TypeScript
import * as React from "react";
|
|
import Link from "next/link";
|
|
import { ArrowLeft, Plus } from "lucide-react";
|
|
import { UserButton } from "@/components/auth/clerk-safe";
|
|
import { Button } from "@/components/ui/button";
|
|
import { MenivorMark } from "@/components/brand/MenivorMark";
|
|
|
|
export interface CatalogShellProps {
|
|
title: string;
|
|
description: string;
|
|
/** Optional back link (label + href) shown above the title. */
|
|
backHref?: string;
|
|
backLabel?: string;
|
|
/** Optional actions rendered on the right of the title row. */
|
|
actions?: React.ReactNode;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
/**
|
|
* Shared page chrome for every catalog/studio route: the ReelForge top bar
|
|
* plus a titled section header. Presentational only — safe to render from a
|
|
* server component.
|
|
*/
|
|
export function CatalogShell({
|
|
title,
|
|
description,
|
|
backHref,
|
|
backLabel,
|
|
actions,
|
|
children,
|
|
}: Readonly<CatalogShellProps>) {
|
|
return (
|
|
<main className="min-h-dvh">
|
|
<header className="border-b border-border">
|
|
<div className="container flex items-center justify-between py-4">
|
|
<Link
|
|
href="/reels"
|
|
className="flex items-center gap-2 font-semibold"
|
|
>
|
|
<MenivorMark variant="mono" className="size-7" title="Menivor" />
|
|
</Link>
|
|
<div className="flex items-center gap-3">
|
|
<Button asChild size="sm">
|
|
<Link href="/new">
|
|
<Plus className="size-4" aria-hidden /> New reel
|
|
</Link>
|
|
</Button>
|
|
<UserButton />
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<section className="container py-10">
|
|
{backHref && (
|
|
<Link
|
|
href={backHref}
|
|
className="mb-4 inline-flex items-center gap-1.5 text-sm text-muted-foreground transition-colors hover:text-foreground"
|
|
>
|
|
<ArrowLeft className="size-4" aria-hidden />
|
|
{backLabel ?? "Back"}
|
|
</Link>
|
|
)}
|
|
<div className="mb-8 flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between">
|
|
<div className="max-w-2xl">
|
|
<h1 className="text-3xl font-bold tracking-tight">{title}</h1>
|
|
<p className="mt-2 text-muted-foreground">{description}</p>
|
|
</div>
|
|
{actions && <div className="flex items-center gap-2">{actions}</div>}
|
|
</div>
|
|
|
|
{children}
|
|
</section>
|
|
</main>
|
|
);
|
|
}
|