'use client'; import { Card } from '@/types'; import { withBasePath } from '@/lib/url'; const VIDEO_RE = /\.(mp4|m4v|webm|mov|qt|ogv|ogg)(\?|$)/i; export default function FullscreenLock({ card }: { card: Card }) { const isVideo = !!card.imageUrl && VIDEO_RE.test(card.imageUrl); const url = withBasePath(card.imageUrl); return (
e.preventDefault()} > {!url ? (

Empty lock card. Open /admin to add an image or video.

) : isVideo ? (
); }