"use client"; import { useState } from "react"; import Image from "next/image"; import { FiMessageSquare, FiPhone } from "react-icons/fi"; import { FaStar } from "react-icons/fa"; import StickyHeader from "@/components/Componentes/sticky-header"; import NavigationButton from "@/components/Componentes/navigation-button"; import { PageBackground } from "@/components/Componentes/page-background"; import SupportSheet from "@/components/Componentes/support-sheet"; import { useI18n } from "@/translations/provider"; export default function MarriageAdvisorsPage() { const { dictionary: t } = useI18n(); const [isSupportOpen, setIsSupportOpen] = useState(false); const mainStyle = { backgroundImage: `url("/assets/images/islamic_pattern_2_2892_3864.svg")`, backgroundColor: "#F5F5F5", backgroundRepeat: "repeat-y", backgroundSize: "100% auto", }; const advisors = [ { id: "hasti-masoudi", name: t["Dr. Hasti Masoudi"] || "Dr. Hasti Masoudi", specialty: t["Specialist in clinical psychology"] || "Specialist in clinical psychology", avatar: "/assets/images/female_avatar.svg", rating: "3.2", tagsRow1: [ t["Personal Development"] || "Personal Development", t["Team Manager"] || "Team Manager", t["Science"] || "Science", ], tagsRow2: [ t["Manager"] || "Manager", t["Team Manager"] || "Team Manager", t["Science"] || "Science", ], online: true, }, { id: "ali-rezaei", name: t["Dr. Ali Rezaei"] || "Dr. Ali Rezaei", specialty: t["Family & marriage counselor"] || "Family & marriage counselor", avatar: "/assets/images/Avatar Image.png", rating: "4.9", tagsRow1: [ t["Premarital Counselling"] || "Premarital Counselling", t["Conflict Resolution"] || "Conflict Resolution", ], tagsRow2: [ t["Behavioral Therapy"] || "Behavioral Therapy", t["Self-Awareness"] || "Self-Awareness", ], online: true, }, { id: "sara-alavi", name: t["Dr. Sara Alavi"] || "Dr. Sara Alavi", specialty: t["Relationship & intimacy coach"] || "Relationship & intimacy coach", avatar: "/assets/images/Ellipse 370.png", rating: "4.7", tagsRow1: [ t["Emotional Health"] || "Emotional Health", t["Communication Skills"] || "Communication Skills", ], tagsRow2: [ t["Relationship Coach"] || "Relationship Coach", t["Personal Development"] || "Personal Development", ], online: false, }, ]; return ( <> {t["Marriage advisors"]} {advisors.map((advisor) => ( {/* Top Frame containing Left (Avatar + Info) and Right (Rating) and Actions */} {/* Header Row */} {/* Left part: Avatar + Info */} {/* Avatar Container */} {/* Status indicator dot */} {advisor.online && ( )} {/* Name + Title Info */} {advisor.name} {advisor.specialty} {/* Right part: Rating */} {advisor.rating} {/* Actions Row */} {/* Text Contact Button */} setIsSupportOpen(true)} className="flex flex-row justify-center items-center px-2 py-0.5 gap-1.5 h-[22px] bg-[rgba(14,177,60,0.1)] rounded-[20px] text-[#0EB13C] font-semibold text-[10px] leading-[13px] transition-transform active:scale-95 cursor-pointer border-none" > {t["Text"] || "Text"} {/* Voice Call Contact Button */} setIsSupportOpen(true)} className="flex flex-row justify-center items-center px-2 py-0.5 gap-1.5 h-[22px] bg-[rgba(14,177,60,0.1)] rounded-[20px] text-[#0EB13C] font-semibold text-[10px] leading-[13px] transition-transform active:scale-95 cursor-pointer border-none" > {t["Voice Call"] || "Voice Call"} {/* Divider */} {/* Tags Section */} {/* Row 1 tags */} {advisor.tagsRow1.map((tag, index) => ( {tag} ))} {/* Row 2 tags */} {advisor.tagsRow2.map((tag, index) => ( {tag} ))} ))} setIsSupportOpen(false)} /> > ); }
{advisor.specialty}