import React from "react"; import { colorClassesMapping, IconProps, iconSize } from "./Icon"; import { cls } from "../util"; export function GitHubIcon({ size = 24, color, className, onClick, style }: IconProps) { // `size` is `IconSize | number` — resolve the keyword, or an SVG attribute // of width="small" is emitted and the icon renders at its intrinsic size. const px = typeof size === "number" ? size : iconSize[size]; return ; }