videogen/apps/web/app/beta/_components/AvailableFormats.tsx
caelum0x d56639a594
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
Menivor — open source release (MIT), free to use and fork
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.
2026-12-04 02:10:26 +03:00

54 lines
1.9 KiB
TypeScript

import { CheckCircle2 } from "lucide-react";
import { cn } from "@/lib/utils";
import type { LaunchFormat } from "../_lib/launch";
/** Plain-language description per keyless format (server label stays the title). */
const FORMAT_DETAIL: Record<string, string> = {
captions_only_byov:
"Upload a video you recorded. Its own audio is transcribed and word-by-word captions are burned in. No AI provider is called.",
faceless_tts_free_voice:
"Type your script, pick a free neural voice and a background loop. You get a narrated, captioned 9:16 reel.",
};
export interface AvailableFormatsProps {
readonly formats: readonly LaunchFormat[];
readonly className?: string;
}
/**
* The formats a private-beta user can make today, straight from the server's
* readiness payload. When the server reports none ready, say so plainly
* instead of listing formats that would fail.
*/
export function AvailableFormats({ formats, className }: AvailableFormatsProps) {
if (formats.length === 0) {
return (
<p className={cn("text-sm text-muted-foreground", className)}>
No format is rendering on the beta servers yet. Approved requests get an email
once one is live.
</p>
);
}
return (
<div className={cn("space-y-3", className)}>
<p className="text-sm font-medium text-foreground">Available in the beta now</p>
<ul className="space-y-3">
{formats.map((format) => (
<li key={format.id} className="flex gap-3">
<CheckCircle2 className="mt-0.5 size-4 shrink-0 text-primary" aria-hidden />
<div>
<p className="text-sm font-medium text-foreground">{format.label}</p>
<p className="text-sm text-muted-foreground">
{FORMAT_DETAIL[format.id] ?? format.notes}
</p>
</div>
</li>
))}
</ul>
<p className="text-xs text-muted-foreground">
Both are free during the beta.
</p>
</div>
);
}