"use client"; import type { CSSProperties } from "react"; import { useReducedMotion } from "@/app/hooks/useReducedMotion"; import { getProjectVideo, getShowcaseConfig } from "@/lib/project-showcase"; import { ProjectVideo } from "../ProjectVideo"; import { BrowserFrame, displayUrl } from "./BrowserFrame"; import { useShowcaseCard } from "./ShowcaseProvider"; /** * Capa do card com vídeo: o vídeo dentro de uma moldura de navegador, com brilho da cor do site quando é o * card que toca, e o botão que amplia (a tela inteira é o botão). */ export function ProjectMedia({ project, }: { project: { id: string; title: string; demoUrl?: string | null; githubUrl?: string | null; }; }) { const { frameRef, active, open, userPaused, toggleAutoplay } = useShowcaseCard(project.id); const reducedMotion = useReducedMotion(); const video = getProjectVideo(project.id); const config = getShowcaseConfig(project.id); if (!video || !config) return null; return (