import { useMatch } from "./useMatch.js";
function useRouteContext(opts) {
  return useMatch({
    ...opts,
    select: (match) => opts.select ? opts.select(match.context) : match.context
  });
}
export {
  useRouteContext
};//# sourceMappingURL=https://main.vscode-cdn.net/sourcemaps/def9583aef9852ff94cb0dea16ede9bb6b095b30/node_modules/@tanstack/react-router/dist/esm/useRouteContext.js.map
