import { __ } from "@wordpress/i18n"; import { PanelBody } from "@wordpress/components"; import Editor from "@monaco-editor/react"; import { useDispatch, useSelect } from "@wordpress/data"; const CustomCss = () => { const customCss = useSelect((select) => select("smartpost/global-settings").getCustomCSS()); const { setCustomCSS } = useDispatch("smartpost/global-settings"); return (

Use this area to add CSS and customize the page to your preference.

setCustomCSS(e)} options={{ quickSuggestions: { other: "on", comments: "off", strings: "off", }, quickSuggestionsDelay: 10, minimap: { enabled: false, }, scrollbar: { vertical: "auto", horizontal: "auto", verticalScrollbarSize: 5, horizontalScrollbarSize: 5, scrollByPage: false, ignoreHorizontalScrollbarInContentHeight: false, }, lineNumbersMinChars: 1, folding: false, wordWrap: "on", }} />
); }; export default CustomCss;