/**
 * Companies route. Delegates to the CompaniesList (M13b W1).
 * Sub-routes (e.g. /companies/:id) are nested under this route
 * so the sidebar Companies link keeps its active state.
 */

import { Route, Routes } from 'react-router-dom';
import { CompaniesList } from '@/features/companies/list';
import { CompanyDetailPage } from '@/features/companies/detail-page';

export function CompaniesRoute() {
  return (
    <Routes>
      <Route index element={<CompaniesList />} />
      <Route path=":id" element={<CompanyDetailPage />} />
    </Routes>
  );
}
