page clinics & page clinic item head and tabs about

This commit is contained in:
Ehsan
2024-08-12 06:31:40 +03:30
parent 697bde2f5d
commit f5ce58ef90
37 changed files with 1643 additions and 51 deletions
+29 -2
View File
@@ -1,6 +1,33 @@
function ClinicPage({data}) {
'use client';
import { useState } from 'react';
import Tabs from "./Tabs";
import About from './components/about';
import Contact from './components/Contact';
import Doctors from './components/Doctors';
function ClinicPage({ data }) {
const [value, setValue] = useState(0);
const handleChange = (event, newValue) => setValue(newValue);
const Components = [
<About data={data} />,
<Contact data={data} />,
<Doctors data={data} />
];
return (
<div>ClinicPage</div>
<div className="pt-[136px] mt-[40px] padding-responsive">
<Tabs
value={value}
handleChange={handleChange}
/>
<div className='mt-[32px]'>
{Components[value]}
</div>
</div>
)
}