import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import { HomePage } from './pages/Home.page';
import { DockViewPage } from './pages/DockView.page';
import { VSCodeLayoutPage } from './pages/VSCodeLayout.page';
import { Error_404 } from './components/404/404';

const router = createBrowserRouter([
  {
    path: '/',
    element: <HomePage />,
  },
  {
    path: '/dockview',
    element: <DockViewPage />,
  },
  {
    path: '/vscode-layout',
    element: <VSCodeLayoutPage />,
  },
  {
    path: '*',
    element: <Error_404 /> },
]);

export function Router() {
  return <RouterProvider router={router} />;
}
