import AppLayout from "components/AppLayout"; import Markdawn from "components/Markdown/Markdawn"; import ContentPanel, { ContentPanelWidthSizes, } from "components/Panels/ContentPanel"; import { GetStaticPropsContext } from "next"; import Script from "next/script"; import { AppStaticProps, getAppStaticProps } from "queries/getAppStaticProps"; import { useCallback, useState } from "react"; import { default as TurndownService } from "turndown"; interface EditorProps extends AppStaticProps {} export default function Editor(props: EditorProps): JSX.Element { const handleInput = useCallback((event) => { setMarkdown(event.target.value); }, []); const [markdown, setMarkdown] = useState(""); const contentPanel = (