15 lines · 626 B · TypeScript
RawDownload
import { createFileRoute, useParams } from "@tanstack/react-router"; import { ArtifactsRoute } from "./artifacts-route"; export const Route = createFileRoute("/{-$orgSlug}/artifacts")({  component: ArtifactsRouteComponent,}); function ArtifactsRouteComponent() {  // `/artifacts/$artifactId` generates as a CHILD of this route, and this  // component renders no <Outlet/>, so the parent must serve both URLs — the  // same shape `toolkits.tsx` uses for `/toolkits/$toolkitSlug`.  const { artifactId } = useParams({ strict: false }) as { artifactId?: string };  return <ArtifactsRoute artifactId={artifactId} />;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t