maccounter
26 строк · 786.0 Байт
1import React, { FC } from 'react'
2import './App.css'
3import Header from '@components/Header/Header'
4import Sidebar from '@components/Sidebar/Sidebar'
5import { Provider } from 'react-redux'
6import store from '@store/redux-store'
7import { BrowserRouter } from 'react-router-dom'
8import Modal from '@components/Modal/Modal'
9import ContentPage from '@pages/ContentPage/ContentPage'
10
11const App: FC = () => (
12<BrowserRouter>
13<Provider store={store}>
14<div className="app" data-theme="light">
15<Header />
16<section className="app-wrap">
17<Sidebar />
18<ContentPage />
19</section>
20<Modal />
21</div>
22</Provider>
23</BrowserRouter>
24)
25
26export default App
27