mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
17 lines
333 B
TypeScript
17 lines
333 B
TypeScript
|
import { useStyles } from './Codebox.styles';
|
||
|
|
||
|
interface ICodeboxProps {
|
||
|
text: string;
|
||
|
}
|
||
|
|
||
|
const Codebox = ({ text }: ICodeboxProps) => {
|
||
|
const styles = useStyles();
|
||
|
return (
|
||
|
<div className={styles.container}>
|
||
|
<pre className={styles.code}>{text}</pre>
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default Codebox;
|