import React from 'react'; import { FormattedMessage } from 'react-intl'; import { InlineTextButton } from '../../components'; import { LINE_ITEM_NIGHT, LINE_ITEM_DAY } from '../../util/types'; import config from '../../config'; import css from './ListingPage.css'; const SectionHeading = props => { const { priceTitle, formattedPrice, richTitle, category, hostLink, showContactUser, onContactUser, } = props; const unitType = config.bookingUnitType; const isNightly = unitType === LINE_ITEM_NIGHT; const isDaily = unitType === LINE_ITEM_DAY; const unitTranslationKey = isNightly ? 'ListingPage.perNight' : isDaily ? 'ListingPage.perDay' : 'ListingPage.perUnit'; return (
{formattedPrice}

{richTitle}

{category} {showContactUser ? ( ) : null}
); }; export default SectionHeading;