mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
interface CodeBlockProps {
|
|
code: string;
|
|
lang?: string;
|
|
}
|
|
|
|
export function CodeBlock({ code }: CodeBlockProps) {
|
|
return (
|
|
<pre className="mt-3 p-3 text-xs rounded-lg bg-fd-muted text-fd-foreground overflow-x-auto font-mono whitespace-pre-wrap break-words">
|
|
{code}
|
|
</pre>
|
|
);
|
|
}
|