import { codeToHtml } from "shiki"; import { CopyButton } from "./copy-button"; export async function CodeBlock({ children, title, language = "text", }: { children: string; title?: string; language?: string; }) { const html = await codeToHtml(children, { lang: language, theme: "github-dark", }); return (