import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import { PageShell } from './components/layout/PageShell';
import { ExercisesPage } from './pages/ExercisesPage';
import { SetsPage } from './pages/SetsPage';
import { TrainingPage } from './pages/TrainingPage';
import { HistoryPage } from './pages/HistoryPage';
import { SettingsPage } from './pages/SettingsPage';

const router = createBrowserRouter([
  {
    element: <PageShell />,
    children: [
      { path: '/', element: <ExercisesPage /> },
      { path: '/sets', element: <SetsPage /> },
      { path: '/training', element: <TrainingPage /> },
      { path: '/history', element: <HistoryPage /> },
      { path: '/settings', element: <SettingsPage /> },
    ],
  },
]);

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