score:0

import React, { FC } from 'react';
import { BrowserRouter } from 'react-router-dom';

import { AuthProvider } from './context/AuthProvider'
import ProtectedLayout from './components/ProtectedLayout';
import Routers from './routers';
import Sidebar from './components/sidebar/Sidebar';

const App: FC = () => {
    return (
        <AuthProvider>
            <BrowserRouter>
                <ProtectedLayout>
                    <Sidebar />
                </ProtectedLayout>
                <Routers />
            </BrowserRouter>
        </AuthProvider>
    );
};

export default App;

Related Query

More Query from same tag