import { Box, HStack, Text } from "@chakra-ui/react" import type { CodeLang } from "./code-lang-icon" import { CodeLangIcon } from "./code-lang-icon" interface CodeBlockProps { title?: string lang?: CodeLang children: React.ReactNode [key: string]: any } export const CodeBlock = (props: CodeBlockProps) => { const { title, lang, children, ...rest } = props return ( {lang && } {title} {children} ) }