import { memo } from "react"; import { useTheme } from "../theme"; import { tss } from "../tss"; import GithubBtn from "react-github-btn"; export type GlGithubStarCountProps = { className?: string; size?: "normal" | "large"; repoUrl: string; showCount?: boolean; }; export const GlGithubStarCount = memo((props: GlGithubStarCountProps) => { const { repoUrl, size, className, showCount } = props; const { classes, cx } = useStyles(); const { themeVariant } = (function useClosure() { const { isDarkModeEnabled } = useTheme(); const themeVariant = isDarkModeEnabled ? "dark" : ("light" as const); return { themeVariant }; })(); return (