import { useIntl } from 'react-intl' import { Typography } from '../../Typography' interface RoomPriceProps extends React.HTMLAttributes { price: number currency: string includePerNight?: boolean } export function RoomPrice({ price, currency, children, includePerNight = true, ...props }: RoomPriceProps) { const intl = useIntl() return (

{price} {currency} {children} {includePerNight ? ( {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} / {intl.formatMessage({ id: 'common.night', defaultMessage: 'night', })} ) : null}

) }