const reroute = ({ url }) => {
  const pathname = url.pathname;
  if (!pathname.startsWith("/view")) return;
  return pathname.replace(/^\/view(?=\/|$)/, "/traces");
};

export { reroute };
//# sourceMappingURL=hooks-BJphIAi-.js.map
