/**
 * Sources route. Delegates to:
 *   /sources        \u2192 SourcesList  (super_admin sees the tenant picker)
 *   /sources/:id    \u2192 SourcesList  (filtered to that tenant)
 *   /sources/:id/:sid \u2192 SourceDetailPage
 *
 * Sub-routes are nested so the sidebar Sources link keeps its
 * active state on both the list and the detail page.
 */

import { Route, Routes } from 'react-router-dom';
import { SourcesList } from '@/features/sources/list';
import { SourceDetailPage } from '@/features/sources/detail-page';

export function SourcesRoute() {
  return (
    <Routes>
      <Route index element={<SourcesList />} />
      <Route path=":id" element={<SourcesList />} />
      <Route path=":id/:sid" element={<SourceDetailPage />} />
    </Routes>
  );
}
