import { createBrowserRouter,Navigate } from "react-router-dom";
import Layout from "@/Layout.tsx";
import Main from "./pages/Main";
import Register from "./pages/Register";
const router = createBrowserRouter([
  {
    path: "/",
    element: <Layout/>,
    children: [
        { 
        index: true, 
        element: <Navigate to="/square" replace /> 
        },
        {
            path:'/square',
            element: <Main/>,
        },
        {
            path:'/user/register',
            element: <Register/>,
        },
    ],
  },
]);

export default router;