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 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; if (props.building.is_extension == "The main building"){ return ( ); }; return ( // This is what gets used when is_extension == "A major extension" ); }; const TeamContainer = withCopyEdit(TeamView); export default TeamContainer;