openreplay/frontend/app/components/ui/HighlightCode/HighlightCode.js
Delirium 203791f0f6
Remove unused code, refactor frontend and revisit libraries (#2458)
* 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>
2024-08-27 16:15:14 +02:00

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