import React from 'react'; import { isEmpty } from '../../../validators/form-validator'; import LabelField from '../../label/label.component'; import { ValueDisplay, ValueEmpty } from '../value.component'; import styles from './field-value-view.scss'; interface FieldValueViewProps { isInline: boolean; label: string; value: any; conceptName: string; } const FieldValueView: React.FC = ({ label, conceptName, value, isInline }) => ( <> {isInline ? (
{isEmpty(value) ? : }
) : (
{isEmpty(value) ? : }
)} ); export default FieldValueView;