import * as React from 'react'; import DropList from 'src/components/DropList'; import Icon from 'src/components/Icon'; import i18n from 'src/i18n'; import { PluginComponent } from 'src/plugins/Plugin'; import HeaderList from './HeaderList'; interface State { show: boolean; } export default class Header extends PluginComponent { static pluginName = 'header'; constructor(props: any) { super(props); this.show = this.show.bind(this); this.hide = this.hide.bind(this); this.state = { show: false, }; } private show() { this.setState({ show: true, }); } private hide() { this.setState({ show: false, }); } render() { return ( this.editor.insertMarkdown(header)} /> ); } }