import React, { Fragment } from 'react'; import { dataFields } from '../../config/data-fields-config'; import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-entry'; import NumericDataEntry from '../data-components/numeric-data-entry'; import SelectDataEntry from '../data-components/select-data-entry'; import TextboxDataEntry from '../data-components/textbox-data-entry'; import Verification from '../data-components/verification'; import YearDataEntry from '../data-components/year-data-entry'; import withCopyEdit from '../data-container'; import { CategoryViewProps } from './category-view-props'; /** * Age view/edit section */ const AgeView: React.FunctionComponent = (props) => { const currentYear = new Date().getFullYear(); if (props.building.date_source == "Expert knowledge of building" || props.building.date_source == "Expert estimate from image" || props.building.date_source == null ){ return ( ); }; return ( ); }; const AgeContainer = withCopyEdit(AgeView); export default AgeContainer;