diff --git a/src/components/CodeEditor/index.jsx b/src/components/CodeEditor/index.jsx index baa07ca..df34824 100644 --- a/src/components/CodeEditor/index.jsx +++ b/src/components/CodeEditor/index.jsx @@ -6,7 +6,11 @@ import { IconCopy } from "@douyinfe/semi-icons"; import { setUpDBML } from "./setUpDBML"; import "./styles.css"; -export default function CodeEditor({ showCopyButton, ...props }) { +export default function CodeEditor({ + showCopyButton, + extraControls, + ...props +}) { const { settings } = useSettings(); const { database } = useDiagram(); const { t } = useTranslation(); @@ -36,11 +40,14 @@ export default function CodeEditor({ showCopyButton, ...props }) { onMount={handleEditorMount} /> {showCopyButton && ( -