// @flow import { LIVESTREAM_EMBED_URL } from 'constants/livestream'; import React from 'react'; import FileTitleSection from 'component/fileTitleSection'; import { useIsMobile } from 'effects/use-screensize'; import LivestreamScheduledInfo from 'component/livestreamScheduledInfo'; import classnames from 'classnames'; import { lazyImport } from 'util/lazyImport'; import LivestreamLink from 'component/livestreamLink'; const LivestreamComments = lazyImport(() => import('component/livestreamComments' /* webpackChunkName: "comments" */)); type Props = { uri: string, claim: ?StreamClaim, hideComments: boolean, release: any, showLivestream: boolean, showScheduledInfo: boolean, isCurrentClaimLive: boolean, activeStreamUri: boolean | string, }; export default function LivestreamLayout(props: Props) { const { claim, uri, hideComments, release, showLivestream, showScheduledInfo, isCurrentClaimLive, activeStreamUri, } = props; const isMobile = useIsMobile(); if (!claim || !claim.signing_channel) { return null; } const channelName = claim.signing_channel.name; const channelClaimId = claim.signing_channel.claim_id; return ( <>