import GlassButton from "./GlassButton"; import GlassContainer from "./GlassContainer"; import { GLASS_EFFECTS } from "../constants"; interface VideoCaptureProps { isRunning: boolean; onToggleRunning: () => void; error?: string | null; videoMode: "camera" | "upload"; } export default function VideoCapture({ isRunning, onToggleRunning, error, videoMode }: VideoCaptureProps) { const hasError = Boolean(error); const [statusText, statusColor, containerBgColor] = hasError ? ["Error", "bg-red-500", GLASS_EFFECTS.COLORS.ERROR_BG] : isRunning ? ["Live", "bg-green-500 animate-pulse", GLASS_EFFECTS.COLORS.DEFAULT_BG] : ["Paused", "bg-red-500", GLASS_EFFECTS.COLORS.DEFAULT_BG]; const modeText = videoMode === "camera" ? "Camera" : "Video"; return ( <> {/* Control buttons - positioned absolutely over the video */}