import { useState } from 'react';
import EmbedPanel from './components/EmbedPanel.js';
import DetectPanel from './components/DetectPanel.js';
import ApiDocs from './components/ApiDocs.js';
import HowItWorks from './components/HowItWorks.js';
export default function App() {
const [tab, setTab] = useState<'embed' | 'detect' | 'api' | 'how'>('embed');
const isWide = tab === 'how';
return (
LTMarX
{tab === 'embed' ? '🎬 Embed Watermark' : tab === 'detect' ? '🔎 Detect Watermark' : tab === 'api' ? '📖 API Reference' : '📐 How It Works'}
{tab === 'embed'
? 'Embed an imperceptible 32-bit payload into your video.'
: tab === 'detect'
? 'Analyze a video to detect and extract embedded watermarks.'
: tab === 'api'
? 'Integrate LTMarX into your application.'
: 'Interactive walkthrough of the DWT/DCT watermarking pipeline.'}