import React, { useState } from "react"; import { Play } from "lucide-react"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import { ResourceModal } from "./resource-modal"; import type { ResourceCenterHeaderProps } from "./types"; export function ResourceCenterHeader({ title, description, backgroundImageUrl, backgroundVideoUrl, watchVideoUrl, }: ResourceCenterHeaderProps) { const [watchModalOpen, setWatchModalOpen] = useState(false); const hasBackground = !!backgroundImageUrl || !!backgroundVideoUrl; return ( <>
{/* Background base */}
{/* Background image */} {backgroundImageUrl && !backgroundVideoUrl && ( )} {/* Background video */} {backgroundVideoUrl && (