import type { DemoSlot } from '../../cms/types' /** * A CMS-configured demo clip. Renders nothing until a video has been uploaded in * /admin → Demos, so a page never shows an empty player. */ export default function DemoPlayer({ slot, compact = false }: { slot?: DemoSlot; compact?: boolean }) { if (!slot || !slot.enabled || !slot.video) return null return (
{slot.title || slot.caption ? (
{slot.title ? {slot.title} : null} {slot.caption ? {slot.caption} : null}
) : null}
) }