import React , { FC } from "react" ; import { WidgetDisplay } from "../../store/reducers/types" ; const Widget = ( { children , colour , fontFamily , fontSize = 24 , fontWeight , } ) => ( < div className = { `Widget ${ fontWeight ? "weight-override" : "" }` } style = { { color : colour , fontFamily , fontSize : `${ fontSize }px` , fontWeight , } } > { children } < /div>); export default Widget ;