// @flow import * as React from 'react'; import { normalizeURI } from 'lbry-redux'; import FileViewerInitiator from 'component/fileViewerInitiator'; import FileSubtitle from 'component/fileSubtitle'; import FilePrice from 'component/filePrice'; import FileDetails from 'component/fileDetails'; import FileAuthor from 'component/fileAuthor'; import FileActions from 'component/fileActions'; import RecommendedContent from 'component/recommendedContent'; import CommentsList from 'component/commentsList'; import CommentCreate from 'component/commentCreate'; import ClaimUri from 'component/claimUri'; export const FILE_WRAPPER_CLASS = 'grid-area--content'; type Props = { claim: StreamClaim, fileInfo: FileListItem, uri: string, claimIsMine: boolean, costInfo: ?{ cost: number }, balance: number, title: string, nsfw: boolean, }; function LayoutWrapperFile(props: Props) { const { claim, uri, claimIsMine, costInfo, balance, title, nsfw } = props; const insufficientCredits = !claimIsMine && costInfo && costInfo.cost > balance; return (