// External imports import * as React from "react" // Internal imports import * as ce from "../../helpers/componentEnhancer" export interface ParentProps { title: string subtitle?: string } interface StateProps {} interface DispatchProps {} interface LocalState {} class Title extends React.Component< ParentProps & StateProps & DispatchProps & ce.EnhancedPropsPrivate, LocalState > { render() { return (

{this.props.title}

{this.props.subtitle ?

{this.props.subtitle}

: null}
{this.props.children}
) } } const stateMappings: ce.StateMappings = (s, props) => ({}) const dispatchMappings: ce.DispatchMappings = (d, props) => ({}) export default ((): React.ComponentType => ce.enhance(Title, { stateMappings, dispatchMappings }))()