import React from 'react' import ftDateFormat from '@financial-times/ft-date-format' /** * Component for rendering live blog status indicator. * * @param {Object} props * @param {Boolean} props.realtime * @param {string} props.lastUpdatedDateTime */ type LiveBlogIndicatorProps = { realtime?: boolean lastUpdatedDateTime: string } const LiveBlogIndicator: React.FC = ({ realtime, lastUpdatedDateTime, }) => { const isLive = Boolean(realtime) return (
{isLive && ( {/* Origami o-label component expects whitespace to output correctly */}{' '} Live )}
) } export default LiveBlogIndicator