import * as React from "react"; import { ControlPanelState } from "../../interfaces"; import { toggleControlPanel } from "../../actions"; import { t } from "../../../i18next_wrapper"; interface Props { dispatch: Function; name: keyof ControlPanelState; title: string; expanded: boolean; } export let Header = (props: Props) => { const { dispatch, name, title, expanded } = props; const icon_string = expanded ? "minus" : "plus"; return