// @flow import * as React from 'react'; import Button from 'component/button'; import I18nMessage from 'component/i18nMessage'; type Props = { uri: string, fileInfo: FileListItem, isInsufficientCredits: boolean, claimWasPurchased: boolean, }; function ClaimInsufficientCredits(props: Props) { const { isInsufficientCredits, fileInfo, claimWasPurchased } = props; if (fileInfo || !isInsufficientCredits || claimWasPurchased) { return null; } return (