import React, { Fragment } from 'react'; import InfoBox from '../../components/info-box'; import { dataFields } from '../../config/data-fields-config'; import SelectDataEntry from '../data-components/select-data-entry'; import NumericDataEntry from '../data-components/numeric-data-entry'; import Verification from '../data-components/verification'; import { MultiDataEntry } from '../data-components/multi-data-entry/multi-data-entry'; import { LogicalDataEntry } from '../data-components/logical-data-entry/logical-data-entry'; import withCopyEdit from '../data-container'; import { CategoryViewProps } from './category-view-props'; /** * Team view/edit section */ const TeamView: React.FunctionComponent = (props) => { const building = props.building; const currentYear = new Date().getFullYear(); const currentBuildingConstructionYear = building.date_year || undefined; return (
{props.building.is_extension == "The main building" ? ( ) : ( )} ); }; const TeamContainer = withCopyEdit(TeamView); export default TeamContainer;