// @flow import { LIVESTREAM_EMBED_URL } from 'constants/livestream'; import LivestreamScheduledInfo from 'component/livestreamScheduledInfo'; import React from 'react'; import classnames from 'classnames'; type Props = { channelClaimId: string, release?: any, showLivestream: boolean, showScheduledInfo?: boolean, mobileVersion?: boolean, }; export default function LivestreamIframeRender(props: Props) { const { channelClaimId, release, showLivestream, showScheduledInfo, mobileVersion } = props; const className = mobileVersion ? 'file-render file-render--video' : classnames('file-render file-render--video livestream', { 'file-render--scheduledLivestream': !showLivestream, }); return (
{showLivestream && (