"use client"; import { Fragment, useState } from "react"; import { Play } from "lucide-react"; import { cn } from "@/lib/utils"; import { AspectRatio } from "@/components/ui/aspect-ratio"; import { Button } from "@/components/ui/button"; import { Dialog, DialogContent, DialogHeader, DialogTitle, } from "@/components/ui/dialog"; export interface HeroContactProps { className?: string; /** برچسب بالای عنوان (مثلاً نام شرکت) */ eyebrow?: string; /** عنوان اصلی - فقط یک h1 در صفحه */ heading: string; /** توضیح زیر عنوان */ description: string; /** متن دکمه اصلی (مثلاً «فرم تماس») */ ctaLabel?: string; /** آدرس اسکرول به فرم (مثلاً #contact-form) */ ctaHref?: string; /** مسیر تصویر هیرو (مثلاً /assets/contact-us/contact-us.jpg) */ imageSrc?: string; /** متن جایگزین تصویر */ imageAlt?: string; /** متن دکمه ویدیو (اختیاری - در صورت خالی بودن دکمه ویدیو نمایش داده نمی‌شود) */ videoLabel?: string; /** آیدی ویدیو یوتیوب برای embed (اختیاری) */ videoId?: string; } const HeroContact = ({ className, eyebrow, heading, description, ctaLabel = "فرم تماس", ctaHref = "#contact-form", imageSrc, imageAlt = "تماس با ما", videoLabel, videoId, }: HeroContactProps) => { const [isVideoOpen, setIsVideoOpen] = useState(false); const handleCtaClick = (e: React.MouseEvent) => { if (ctaHref.startsWith("#")) { e.preventDefault(); const el = document.getElementById(ctaHref.slice(1)); el?.scrollIntoView({ behavior: "smooth" }); } }; return (
{eyebrow && (

{eyebrow}

)}

{heading}

{description}

{videoLabel && videoId && ( )}
{imageSrc ? (
{imageAlt}
) : (
)}
{videoId && ( ویدیو معرفی