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

Function GithubStar

app/components/UI/GithubStar.tsx:10–32  ·  view source on GitHub ↗
({ className }: GithubStarProps)

Source from the content-addressed store, hash-verified

8};
9
10export function GithubStar({ className }: GithubStarProps) {
11 const starCount = useStarCount();
12
13 return (
14 <a
15 href="https://github.com/triggerdotdev/jsonhero-web"
16 target="_blank"
17 className="flex text-slate-700 opacity-90 transition hover:cursor-pointer hover:opacity-100"
18 >
19 <div className="flex items-center gap-1 pr-2 pl-1 py-1 bg-slate-300 rounded-l">
20 <GithubIconSimple className="w-4 h-4 ml-1"></GithubIconSimple>
21 <Body className="font-semibold text-slate-800 hidden md:block">
22 Star
23 </Body>
24 </div>
25 {starCount && (
26 <div className="px-2 py-1 border-l border-slate-400 bg-slate-100 rounded-r">
27 <Body className="font-bold">{formatStarCount(starCount)}</Body>
28 </div>
29 )}
30 </a>
31 );
32}

Callers

nothing calls this directly

Calls 2

useStarCountFunction · 0.90
formatStarCountFunction · 0.90

Tested by

no test coverage detected