import { createBrowserRouter } from 'react-router-dom'
import RootLayout from './layout/RootLayout'
import Home from '@/pages/Home/Home'
import Reports from '@/pages/Reports/Reports'
import ReportDetail from '@/pages/ReportDetail/ReportDetail'
import Market from '@/pages/Market/Market'
import Subscribe from '@/pages/Subscribe/Subscribe'
import Events from '@/pages/Events/Events'
import Team from '@/pages/Team/Team'
import Archive from '@/pages/Archive/Archive'
import Special from '@/pages/Special/Special'
import Risks from '@/pages/Risks/Risks'
import Scanner from '@/pages/Scanner/Scanner'
import Radar from '@/pages/Radar/Radar'
import Technology from '@/pages/Technology/Technology'
import Pulse from '@/pages/Pulse/Pulse'
import Membership from '@/pages/Membership/Membership'

export const router = createBrowserRouter([
  {
    path: '/',
    element: <RootLayout />,
    children: [
      { index: true,         element: <Home />         },
      { path: 'reports',     element: <Reports />      },
      { path: 'reports/:id', element: <ReportDetail /> },
      { path: 'market',      element: <Market />       },
      { path: 'subscribe',   element: <Subscribe />    },
      { path: 'events',      element: <Events />       },
      { path: 'team',        element: <Team />         },
      { path: 'archive',     element: <Archive />      },
      { path: 'special',     element: <Special />      },
      { path: 'risks',       element: <Risks />        },
      { path: 'scanner',     element: <Scanner />      },
      { path: 'radar',       element: <Radar />        },
      { path: 'technology',  element: <Technology />   },
      { path: 'pulse',       element: <Pulse />        },
      { path: 'membership',  element: <Membership />   },
    ],
  },
])
