import React from "react"; import ReactMarkdown from "react-markdown"; import lbry from "lbry.js"; import FileActions from "component/fileActions"; import Link from "component/link"; import DateTime from "component/dateTime"; class FileDetails extends React.PureComponent { render() { const { claim, contentType, metadata, uri } = this.props; if (!claim || !metadata) { return (
{__("Empty claim or metadata info.")}
); } const { description, language, license } = metadata; const { height } = claim; const mediaType = lbry.getMediaType(contentType); return (
{__("Published on")}
{__("Content-Type")}{mediaType}
{__("Language")}{language}
{__("License")}{license}

); } } export default FileDetails;