import { CopyButton } from "@/components/CopyButton"; import type { StringLiteralUnion } from "shikiji"; import { getHighlighter } from "shikiji"; export async function CodeBlock(props: { code: string; lang: StringLiteralUnion; }) { const highlighter = await getHighlighter({ themes: ["one-dark-pro"], langs: [props.lang], }); return (
{/* max-w-[calc(32rem-1.5rem-1.5rem)] */} {/*
*/}

{/*

*/}
); }