MyCrypto/common/components/ui/CodeBlock.tsx

16 lines
296 B
TypeScript

import React from 'react';
import './CodeBlock.scss';
interface Props {
children?: React.ReactNode;
className?: string;
}
const CodeBlock = ({ children, className }: Props) => (
<pre className={`${className} CodeBlock`}>
<code>{children}</code>
</pre>
);
export default CodeBlock;