import React, { Fragment } from 'react'; import { Link, NavLink } from 'react-router-dom'; import Sidebar from './sidebar'; import Tooltip from './tooltip'; import InfoBox from './info-box'; const DataSection = function(props){ const match = props.hash && props.slug.match(props.hash); return (
match}>

{props.title}

{ (match)? props.children : null } { (match && !props.inactive)?
Back to maps Edit data
: null }
); } const BuildingView = function(props){ if (!props.building_id){ return (
Back to maps
); } const hash = (props.location && props.location.hash)? props.location.hash.replace('#', ''): undefined; return (

Section introduction of up to roughly 100 characters will take approx­imately this much space. Read more.

Building Name
{props.location_name ? props.location_name : '-'}
Building Number
{props.location_number ? props.location_number : '-'}
Street
{props.location_street ? props.location_street : '-'}
Address line 2
{props.location_line_two ? props.location_line_two : '-'}
Town
{props.location_town ? props.location_town : '-'}
Postcode
{props.location_postcode ? props.location_postcode : '-'}

Coming soon…

Coming soon…

Year built (best estimate)
{props.date_year? props.date_year : '-'}
Year built (lower estimate)
{props.date_lower? props.date_lower : '-'}
Year built (upper estimate)
{props.date_upper? props.date_upper : '-'}
Date Source
{props.date_source? props.date_source : '-'}
Facade date
{props.date_facade? props.date_facade : '-'}
Total storeys
{(props.size_storeys_attic + props.size_storeys_basement + props.size_storeys_core)}
Attic storeys
{props.size_storeys_attic? props.size_storeys_attic : '-'}
Basement storeys
{props.size_storeys_basement? props.size_storeys_basement : '-'}
Height to apex (m)
{props.size_height_apex? props.size_height_apex : '-'}
Ground floor area (m²)
{props.size_floor_area_ground? props.size_floor_area_ground : '-'}
Total floor area (m²)
{props.size_floor_area_total? props.size_floor_area_total : '-'}
Frontage Width (m)
{props.size_width_frontage? props.size_width_frontage : '-'}

Coming soon…

Coming soon…

Coming soon…

Coming soon…

Coming soon…

Coming soon…

Coming soon…

Likes
{props.likes ? props.likes.length : 0}
); } export default BuildingView;