"use client"; import Image from "next/image"; import { useState } from "react"; import { useMarriageConfigQuery } from "@/hooks/marriage/use-marriage-config"; import { SliderHeader } from "./slider-header"; import type { SliderSlideProps } from "./slider-slide"; import VideoPlayer from "./video-player"; import NetworkImage from "./network-image"; export function SliderSlideTwo({ index }: SliderSlideProps) { const [isPlayerOpen, setIsPlayerOpen] = useState(false); const { data: config } = useMarriageConfigQuery(); const thumbnailSrc = config?.video_step_2_thumbnail_url || (config?.intro_video_thumbnail_url && !config.intro_video_thumbnail_url.includes("Frame 2095586523") ? config.intro_video_thumbnail_url : undefined); return (
setIsPlayerOpen(true)} >
play
Dr. Hasti Masoudi

Dr. Hasti Masoudi

We have come together with the goal of creating a secure and confidential path for "permanent marriage" among Muslims

setIsPlayerOpen(false)} videoUrl={config?.video_step_2_url} />
); }