// @flow import * as React from 'react'; import Button from 'component/button'; import { MODALS } from 'lbry-redux'; import * as icons from 'constants/icons'; import Tooltip from 'component/common/tooltip'; type FileInfo = { claim_id: string, }; type Props = { uri: string, claimId: string, openModal: ({ id: string }, { uri: string }) => void, claimIsMine: boolean, fileInfo: FileInfo, }; class FileActions extends React.PureComponent { render() { const { fileInfo, uri, openModal, claimIsMine, claimId } = this.props; const showDelete = fileInfo && Object.keys(fileInfo).length > 0; return ( {showDelete && (