structure

This commit is contained in:
hamid zarghami
2025-08-26 22:17:42 +03:30
commit c69d4ea60b
100 changed files with 9431 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
import { type FC } from 'react'
import SideBar from '../shared/SideBar'
import Header from '../shared/Header'
import { Routes, Route } from 'react-router-dom'
import Footer from '../shared/Footer'
import { clx } from '../helpers/utils'
import { useSharedStore } from '../shared/store/sharedStore'
const MainRouter: FC = () => {
const { hasSubMenu } = useSharedStore()
return (
<div className='p-4 overflow-hidden'>
<SideBar />
<Header />
<div className={clx(
'flex-1 xl:ms-[269px] mt-[68px] xl:mt-[81px]',
hasSubMenu && 'xl:ms-[305px]',
)}>
<div className={clx(
`overflow-auto w-[${window.innerWidth}] max-h-[calc(100vh-113px)]`,
)}>
<div className='pb-20'>
<Routes>
<Route path="/" element={<div className="p-8 text-center">خوش آمدید - صفحه اصلی</div>} />
<Route path="/dashboard" element={<div className="p-8 text-center">داشبورد</div>} />
</Routes>
</div>
</div>
</div>
<Footer />
</div>
)
}
export default MainRouter