({ className }: GithubStarSmallProps)
| 8 | }; |
| 9 | |
| 10 | export function GithubStarSmall({ className }: GithubStarSmallProps) { |
| 11 | const starCount = useStarCount(); |
| 12 | |
| 13 | return ( |
| 14 | <a |
| 15 | href="https://github.com/triggerdotdev/jsonhero-web" |
| 16 | target="_blank" |
| 17 | className="flex p-1 text-slate-700 dark:text-slate-300 hover:bg-slate-300 dark:hover:bg-slate-700 transition hover:cursor-pointer" |
| 18 | > |
| 19 | <div className="flex items-center gap-1.5 pl-1 rounded-l-sm"> |
| 20 | <GithubIconSimple className="w-4 h-4 ml-1 text-slate-700 dark:text-white transition"></GithubIconSimple> |
| 21 | <Body className="font-semibold text-slate-800 dark:text-slate-100"> |
| 22 | Star |
| 23 | </Body> |
| 24 | </div> |
| 25 | {starCount && ( |
| 26 | <div className="pr-2 pl-1"> |
| 27 | <Body className="font-bold dark:text-slate-100"> |
| 28 | {formatStarCount(starCount)} |
| 29 | </Body> |
| 30 | </div> |
| 31 | )} |
| 32 | </a> |
| 33 | ); |
| 34 | } |
nothing calls this directly
no test coverage detected