Skip to content
Source
Sign inSign up

threads.$environmentId.$threadId.tsx

9 lines424 Bytes

1import { Navigate, createFileRoute } from "@tanstack/react-router";
2​
3// A copied thread link. On the hosted app its chooser shows first; this opens the thread after it.
4export const Route = createFileRoute("/threads/$environmentId/$threadId")({
5 component: function ThreadLinkRedirect() {
6 const params = Route.useParams();
7 return <Navigate to="/$environmentId/$threadId" params={params} search replace />;
8 },
9});