import React from 'react'; import { Building } from '../models/building'; import BuildingNotFound from './building-not-found'; import AgeContainer from './data-containers/age'; import CommunityContainer from './data-containers/community'; import ConstructionContainer from './data-containers/construction'; import DynamicsContainer from './data-containers/dynamics'; import LocationContainer from './data-containers/location'; import PlanningContainer from './data-containers/planning'; import SizeContainer from './data-containers/size'; import StreetscapeContainer from './data-containers/streetscape'; import SustainabilityContainer from './data-containers/sustainability'; import TeamContainer from './data-containers/team'; import TypeContainer from './data-containers/type'; import UseContainer from './data-containers/use'; interface BuildingViewProps { cat: string; mode: 'view' | 'edit'; building?: Building; building_like?: boolean; user?: any; selectBuilding: (building: Building) => void; user_verified?: any; } /** * Top-level container for building view/edit form * * @param props */ const BuildingView: React.FunctionComponent = (props) => { switch (props.cat) { case 'location': return ; case 'use': return ; case 'type': return ; case 'age': return ; case 'size': return ; case 'construction': return ; case 'team': return ; case 'sustainability': return ; case 'streetscape': return ; case 'community': return ; case 'planning': return ; case 'dynamics': return ; default: return ; } }; export default BuildingView;