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 BuildingView = function(props){ if (!props.building_id){ return (
Back to maps
); } const hash = (props.location && props.location.hash)? props.location.hash: undefined; return (

Location

{ ( hash.match('location') ) ? (

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 : '-'}
) : null }

Age

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 : '-'}

Size

Attic storeys
{props.size_storeys_attic? props.size_storeys_attic : '-'}
Core storeys
{props.size_storeys_core? props.size_storeys_core : '-'}
Basement storeys
{props.size_storeys_basement? props.size_storeys_basement : '-'}

Like Me!

Likes
{props.likes ? props.likes.length : 0}
Back to maps Edit data
); } export default BuildingView;