// R-P7 (P7 Lead-Inbox) — legacy redirect. The statistics screen moved out of the // inbox route family to `/leads-statistics` (reached via the leads sub-sidenav). // Without this file the old path would fall through to `leads.$id` and be read as // a lead id, so bookmarks and old links are redirected instead. import { redirect, type LoaderFunctionArgs } from "react-router"; import { leadStatisticsPath, LEADS_MODULE_KEY } from "~/utils/integrations/leads/leadRoutePaths"; export const loader = ({ params }: LoaderFunctionArgs) => { throw redirect(leadStatisticsPath(params.tenant ?? ""), 301); }; export const handle = { moduleKey: LEADS_MODULE_KEY };