import { Navigate, createBrowserRouter } from 'react-router-dom'

import { AppLayout } from './AppLayout'
import { PlaceholderPage } from './PlaceholderPage'

export const router = createBrowserRouter([
  {
    path: '/',
    element: <AppLayout />,
    children: [
      { index: true, element: <Navigate to="/chat" replace /> },
      { path: 'chat', element: <PlaceholderPage /> },
      { path: 'chat/:sessionId', element: <PlaceholderPage /> },
      { path: 'documents', element: <PlaceholderPage /> },
      { path: 'documents/:documentId', element: <PlaceholderPage /> },
    ],
  },
])
