import { MessageCopyButton } from "./MessageCopyButton.jsx";

const noop = () => {};

export function CodeBlock({ text, children }) {
  return <div className="markdown-code-block">
    <div className="markdown-code-copy-action"><MessageCopyButton text={text} active onDismiss={noop} standalone /></div>
    <pre>{children}</pre>
  </div>;
}
