import React, { Fragment } from 'react'; import PropTypes from 'prop-types'; import { DataTitleCopyable } from './data-title'; const DataEntry: React.FunctionComponent = (props) => { // TODO: remove any return (
{ (props.value != null && props.value !== '')? (typeof(props.value) === 'boolean')? (props.value)? 'Yes' : 'No' : props.value : '\u00A0' }
); } DataEntry.propTypes = { title: PropTypes.string, slug: PropTypes.string, tooltip: PropTypes.string, disabled: PropTypes.bool, value: PropTypes.any, copy: PropTypes.shape({ copying: PropTypes.bool, copyingKey: PropTypes.func, toggleCopyAttribute: PropTypes.func }) } export default DataEntry;