MCPcopy Create free account
hub / github.com/emwalker/digraph / TitleLink

Function TitleLink

client/src/components/ui/Item/index.tsx:48–69  ·  view source on GitHub ↗
({ url, title }: { url: string | null, title: string })

Source from the content-addressed store, hash-verified

46}
47
48function TitleLink({ url, title }: { url: string | null, title: string }) {
49 if (!url) {
50 return (
51 <a
52 className="Box-row-link"
53 href="#"
54 >
55 {title}
56 </a>
57 )
58 }
59
60 const to = locationDescriptor(url, title)
61
62 return (
63 <div className="item-title">
64 <LinkOrA to={to} className="Box-row-link">
65 {title}
66 </LinkOrA>
67 </div>
68 )
69}
70
71function OuterTopicBadge({ topic }: { topic: Topic }) {
72 const { id, displayName } = topic

Callers

nothing calls this directly

Calls 1

locationDescriptorFunction · 0.85

Tested by

no test coverage detected