import { Icon } from "@chakra-ui/react" export type CodeLang = "tsx" | "ts" | "js" | "jsx" | "css" | "json" interface CodeLangIconProps { type: CodeLang | (string & {}) } export const CodeLangIcon = (props: CodeLangIconProps) => { return ( {(() => { switch (props.type) { case "tsx": case "jsx": return ( ) case "ts": case "js": return ( ) case "css": return ( ) case "json": return ( ) default: return ( ) } })()} ) }