import * as React from "react"; import { Mode, State } from "../store/reducer"; import { Centred, Container, Holder, Scrollable } from "./container"; import { Section } from "./section"; import { Logo } from "./logo"; import { Readme } from "./readme"; import { Editor } from "./editor"; import { Preview } from "./editor/preview"; import { connect } from "react-redux"; import { Switcher } from "./switcher"; import { Stars } from "./stars"; const mapStateToProps = (state: State): Partial => ({ mode: state.mode }); export const App = connect(mapStateToProps)((props: Partial) => { const isEditor = props.mode === Mode.EDITOR; return (
About arkit PlantUML editor
); });