2024-11-03 11:44:23 +03:00
|
|
|
import { Box, Flex } from '@chakra-ui/react';
|
|
|
|
import Sidebar from '../Sidebar';
|
|
|
|
import Orders from '../Orders';
|
|
|
|
import Masters from '../Masters';
|
|
|
|
import React from 'react';
|
2024-11-09 19:34:12 +03:00
|
|
|
import { Navigate, Route, Routes } from 'react-router-dom';
|
2024-11-03 11:44:23 +03:00
|
|
|
|
2024-11-09 19:34:12 +03:00
|
|
|
const LayoutArm = () => (
|
2024-11-03 11:44:23 +03:00
|
|
|
<Flex h='100vh'>
|
2024-11-09 19:34:12 +03:00
|
|
|
<Sidebar />
|
2024-11-03 11:44:23 +03:00
|
|
|
<Box flex='1' bg='gray.50'>
|
2024-11-09 19:34:12 +03:00
|
|
|
<Routes>
|
|
|
|
<Route>
|
|
|
|
<Route index element={<Navigate to='orders' replace />} />
|
|
|
|
<Route path='orders' element={<Orders />} />
|
|
|
|
<Route path='masters' element={<Masters />} />
|
|
|
|
</Route>
|
|
|
|
</Routes>
|
2024-11-03 11:44:23 +03:00
|
|
|
</Box>
|
|
|
|
</Flex>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default LayoutArm;
|