{"version":3,"file":"routesComponent.mjs","names":[],"sources":["../../../src/domain/reactRouter/routesComponent.ts"],"sourcesContent":["import type { AnyLocation, AnyRouteObject, AnyUseRoute } from './types'\n// Same as react-router-dom Routes but with our useRoutes instead of the original one\n// https://github.com/remix-run/react-router/blob/5d66dbdbc8edf1d9c3a4d9c9d84073d046b5785b/packages/react-router/lib/components.tsx#L503-L508\nexport function createRoutesComponent<Location extends AnyLocation>(\n  useRoutes: AnyUseRoute<Location>,\n  createRoutesFromChildren: (children: React.ReactNode, parentPath?: number[]) => AnyRouteObject[]\n) {\n  return function Routes({ children, location }: { children?: React.ReactNode; location?: Location }) {\n    return useRoutes(createRoutesFromChildren(children), location)\n  }\n}\n"],"mappings":";AAGA,SAAgB,sBACd,WACA,0BACA;CACA,OAAO,SAAS,OAAO,EAAE,UAAU,YAAiE;EAClG,OAAO,UAAU,yBAAyB,QAAQ,GAAG,QAAQ;CAC/D;AACF"}