import React, { Fragment } from 'react'; import InfoBox from '../../components/info-box'; import { dataFields } from '../../config/data-fields-config'; import DataEntry from '../data-components/data-entry'; import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-entry'; import SelectDataEntry from '../data-components/select-data-entry'; import TextboxDataEntry from '../data-components/textbox-data-entry'; import withCopyEdit from '../data-container'; import { CategoryViewProps } from './category-view-props'; import Verification from '../data-components/verification'; /** * Use view/edit section */ const UseView: React.FunctionComponent = (props) => { if (props.building.current_landuse_source == "Expert/personal knowledge of building" || props.building.current_landuse_source == "Online streetview image" || props.building.current_landuse_source == null ){ return ( { props.mode != 'view' && } ); }; return ( { props.mode != 'view' && } ); }; const UseContainer = withCopyEdit(UseView); export default UseContainer;