import { useState } from 'react'; interface CodeBlockProps { lang: string; children: string; } function CodeBlock({ lang, children }: CodeBlockProps) { const [copied, setCopied] = useState(false); const copy = () => { navigator.clipboard.writeText(children.trim()); setCopied(true); setTimeout(() => setCopied(false), 1500); }; return (
{children.trim()}
{path}
{desc}
| Parameter | Type | Description |
|---|---|---|
{p.name}
{p.required && *}
|
{p.type} | {p.desc} |
The core engine is isomorphic — same code runs in the browser and on Node.js. It operates on raw Y-plane (luminance) buffers with no platform dependencies.
Base URL: https://lightricks-ltmarx.hf.space (HF Space) or http://localhost:7860 (local).
For private Spaces, add Authorization: Bearer hf_YOUR_TOKEN header.
Requires Node.js and FFmpeg installed locally.
| Preset | Delta | BCH | Masking | Use case |
|---|---|---|---|---|
| {p.name} | {p.delta} | {p.bch} | {p.mask} | {p.use} |