"use client"; import React, { useState, useEffect } from 'react'; import Link from 'next/link'; interface ServiceItem { id: number; icon: string; title: string; text: string; } const services: ServiceItem[] = [ { id: 0, icon: "https://bracketweb.com/pelocishtml/assets/images/resources/service-1-1.jpg", // Using logical equivalents title: "Excellent infection prevention", text: "Lorem ipsum dolor sit amet, conse ctetur adipiscing eliteiusmod tempor incididunt" }, { id: 1, icon: "https://bracketweb.com/pelocishtml/assets/images/resources/service-1-2.jpg", title: "Health patients comprehensive", text: "From its medieval origins to the digital era , learn everything there is to know" }, { id: 2, icon: "https://bracketweb.com/pelocishtml/assets/images/resources/service-1-3.jpg", title: "Pediatric Hematology Oncology", text: "Creation timelines for the standard lorem ipsum passage vary, with some citing the" }, { id: 3, icon: "https://bracketweb.com/pelocishtml/assets/images/resources/service-1-4.jpg", title: "Care Pediatric & Medicine", text: "Letraset's dry-transfer sheets, and later entered the digital world via Aldus" }, { id: 4, icon: "https://bracketweb.com/pelocishtml/assets/images/resources/service-1-5.jpg", title: "Labor & Delivery: The Birthplace", text: "Some claim lorem ipsum threatens to promote design over content, while others defend" }, { id: 5, icon: "https://bracketweb.com/pelocishtml/assets/images/resources/service-1-6.jpg", title: "Urogynecology & Pelvic Health", text: "Generally, lorem ipsum is best suited to keeping templates from looking bare or" } ]; const MedicalServicesCircle: React.FC = () => { const [activeTab, setActiveTab] = useState(0); useEffect(() => { const interval = setInterval(() => { setActiveTab((prev) => (prev + 1) % services.length); }, 5000); return () => clearInterval(interval); }, []); const handleTabClick = (e: React.MouseEvent, id: number) => { e.preventDefault(); setActiveTab(id); }; return (

Medical Services

Search or browse by hospital, treatment or consultant to see what can do for you

icon
{services.map((service) => (

{service.title}

{service.text}

))}
); }; export default MedicalServicesCircle;