import React from 'react'; import BuildingNotFound from './building-not-found'; import LocationContainer from './data-containers/location'; import UseContainer from './data-containers/use'; import TypeContainer from './data-containers/type'; import AgeContainer from './data-containers/age'; import SizeContainer from './data-containers/size'; import ConstructionContainer from './data-containers/construction'; import TeamContainer from './data-containers/team'; import SustainabilityContainer from './data-containers/sustainability'; import StreetscapeContainer from './data-containers/streetscape'; import CommunityContainer from './data-containers/community'; import PlanningContainer from './data-containers/planning'; import LikeContainer from './data-containers/like'; import { Building } from '../models/building'; interface BuildingViewProps { cat: string; mode: 'view' | 'edit' | 'multi-edit'; building: Building; building_like: boolean; user: any; selectBuilding: (building:any) => void } /** * 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 'like': return default: return } } export default BuildingView;