chore: add resource worker

This commit is contained in:
jialin
2024-07-21 18:27:22 +08:00
parent 3842006f6e
commit 177ebd1bbe
16 changed files with 280 additions and 40 deletions
+17
View File
@@ -0,0 +1,17 @@
import CodeViewer from './code-viewer';
import './style.less';
const HighlightCode: React.FC<{
code: string;
lang?: string;
}> = (props) => {
const { code, lang = 'bash' } = props;
return (
<div className="high-light-wrapper">
<CodeViewer lang={lang} code={code} />
</div>
);
};
export default HighlightCode;