// @flow import * as React from 'react'; import MarkdownPreview from 'component/markdownPreview'; import Button from 'component/button'; import path from 'path'; import type { Claim } from 'types/claim'; type Props = { claim: Claim, fileInfo: { download_path: string, }, metadata: { description: string, language: string, license: string, }, openFolder: string => void, contentType: string, }; const FileDetails = (props: Props) => { const { claim, contentType, fileInfo, metadata, openFolder } = props; if (!claim || !metadata) { return (