/* @flow */ import React from 'react' import classnames from 'classnames' import { joinPresent, titleize } from '../utilities/text' import { Body, Hashtag, Title } from '../' import { spacing } from '../utilities/spacing.js' type HomeAddressStreetProps = { address: String, addressCont: String, city: String, className?: String, dark?: Boolean, emphasis: "street" | "city", homeId: Number, houseStyle: String, homeUrl: String, state: String, zipcode: String, territory: String, } const HomeAddressStreet = (props: HomeAddressStreetProps) => { const { address, addressCont, city, className, dark = false, emphasis = 'street', homeId, homeUrl, houseStyle, state, zipcode, territory, } = props const classes = (className, dark) => classnames( className, { 'pb_home_address_street': !dark, 'pb_home_address_street_dark': dark, }, spacing(props) ) return (
{
{joinPresent([titleize(address), houseStyle], ' · ')} {titleize(addressCont)} {`${titleize(city)}, ${state} ${zipcode}`}
{joinPresent([titleize(address), houseStyle], ' · ')} {titleize(addressCont)}
{`${titleize(city)}, ${state}`} {` ${zipcode}`}
} {territory}
) } export default HomeAddressStreet