// External imports import * as React from "react" import { Boolean } from "fawkes-server/build/support" // Internal imports import * as ce from "../../../../../helpers/componentEnhancer" import Icon from "../../../icon" export interface ParentProps { value: Boolean } interface StateProps { } interface DispatchProps { } interface LocalState { } class AdvancedTableBodyCellBoolean extends React.Component< ParentProps & StateProps & DispatchProps & ce.EnhancedPropsPrivate, LocalState > { render() { const cellContent = this.props.value.isNil() ? ( ) : this.props.value.value ? ( ) : ( ) return {cellContent} } } const stateMappings: ce.StateMappings = (s, props) => ({}) const dispatchMappings: ce.DispatchMappings = (d, props) => ({}) export default ((): React.ComponentType => ce.enhance(AdvancedTableBodyCellBoolean, { stateMappings, dispatchMappings }))()