import React, { Fragment } from 'react'; import Editor from 'react-simple-code-editor'; import { Menu, Transition } from '@headlessui/react'; import { ChevronDownIcon } from '@heroicons/react/solid'; import { highlight, languages } from 'prismjs'; import 'prismjs/components/prism-clike'; import 'prismjs/components/prism-yaml'; import 'prismjs/themes/prism.css'; import { initialEditorYaml } from './consts'; function classNames(...classes: any) { return classes.filter(Boolean).join(' '); } export const Advanced = () => { const [code, setCode] = React.useState(initialEditorYaml); return ( <>
Edit Configuration
Versions
{({ active }) => ( Save Version )} {({ active }) => ( View Version History )} {({ active }) => ( Restore Current Version )}
setCode(value)} highlight={(value) => highlight(value, languages.js, 'yaml')} preClassName="font-mono whitespace-normal font-light" textareaClassName="font-mono overflow-auto font-light" className="font-mono text-sm font-light" />
Current Configuration
                {`luck: except
natural: still
near: though
search:
  - feature
  - - 1980732354.689713
    - hour
    - butter:
        ordinary: 995901949.8974948
        teeth: true
        whole:
          - -952367353
          - - talk: -1773961379
              temperature: false
              oxygen: true
              laugh:
                flag:
                  in: 2144751662
                  hospital: -1544066384.1973226
                  law: congress
                  great: stomach`}
              
); };