MCPcopy Create free account
hub / github.com/triggerdotdev/jsonhero-web / ExampleDoc

Function ExampleDoc

app/components/ExampleDoc.tsx:3–20  ·  view source on GitHub ↗
({
  id,
  title,
  path,
}: {
  id: string;
  title: string;
  path?: string;
})

Source from the content-addressed store, hash-verified

1import { Link } from "remix";
2
3export function ExampleDoc({
4 id,
5 title,
6 path,
7}: {
8 id: string;
9 title: string;
10 path?: string;
11}) {
12 return (
13 <Link
14 to={`/j/${id}${path ? `?path=${path}` : ""}`}
15 className="bg-slate-900 px-4 py-2 rounded-md whitespace-nowrap text-lime-300 transition hover:text-lime-500"
16 >
17 {title}
18 </Link>
19 );
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected