* start frontend thinning * continue thinning * removing moment and moment-range * remove highlightjs * remove semantic-ui * ghaida commits to openreplay finally * unused icons * unused icons * unused icons * fix missing icons --------- Co-authored-by: Ghaida Bouchaala <ghaida.bouchaala@gmail.com>
16 lines
426 B
JavaScript
16 lines
426 B
JavaScript
import React from 'react'
|
|
import stl from './highlightCode.module.css'
|
|
import { CopyButton, CodeBlock } from 'UI'
|
|
|
|
function HighlightCode({ className = 'js', text = ''}) {
|
|
return (
|
|
<div className={stl.snippetWrapper}>
|
|
<div className="absolute mt-1 mr-2 right-0">
|
|
<CopyButton content={text} />
|
|
</div>
|
|
<CodeBlock code={text} language={className} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default HighlightCode
|