import ReactDOM from 'react-dom/client';
import './index.css';
import { RouterProvider, createBrowserRouter } from 'react-router-dom';
import { MainPage } from './pages/MainPage';
import { Layout } from './components/Layouts/Layout';

ReactDOM.createRoot(document.getElementById('root')!).render(
  <RouterProvider
    router={createBrowserRouter([
      {
        path: '/',
        Component: Layout,
        children: [
          {
            index: true,
            Component: MainPage,
          },
        ],
      },
    ])}
  />,
);
