chore: add cancel query model

This commit is contained in:
jialin
2024-08-21 18:09:13 +08:00
parent ba1670e56d
commit abb87e71ed
23 changed files with 523 additions and 179 deletions
+3 -2
View File
@@ -4,12 +4,13 @@ import './style.less';
const HighlightCode: React.FC<{
code: string;
lang?: string;
copyable?: boolean;
}> = (props) => {
const { code, lang = 'bash' } = props;
const { code, lang = 'bash', copyable = true } = props;
return (
<div className="high-light-wrapper">
<CodeViewer lang={lang} code={code} />
<CodeViewer lang={lang} code={code} copyable={copyable} />
</div>
);
};