/** * @file src/components/Video.tsx * @description Inline autoplay-loop video wrapper for the docs. * Gracefully hides if video file is missing. */ import { useState } from 'react' export function Video({ name, caption }: { name: string; caption?: string }) { const [hasError, setHasError] = useState(false) if (hasError) return null return (
{caption && (
{caption}
)}
) }