'use client'; import { useEffect, useState } from 'react'; import About from './components/about'; import Contact from './components/contact'; import Doctors from './components/doctors'; import Tabs from '@/app/component/Tabs'; const listTab = ['درباره کلینیک', 'اطلاعات تماس', 'پزشک ها']; function ClinicPage({ data, doctors }) { const [value, setValue] = useState(0); const [loading, setLoading] = useState(true); const handleChange = (event, newValue) => setValue(newValue); const Components = [ , , ]; useEffect(() => { setTimeout(() => { setLoading(false); }, 2000); }, []); return (
{Components[value]}
) } export default ClinicPage