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

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