/* eslint no-unused-vars: 0 */ import React, {Component, Fragment} from 'react'; import { DetailContextConsumer } from '../../pages/version/index'; import Card from '@material-ui/core/Card/index'; import CardContent from '@material-ui/core/CardContent/index'; import Avatar from '@material-ui/core/Avatar'; import Notes from '@material-ui/icons/Notes'; import Typography from "@material-ui/core/Typography/index"; class License extends Component { render() { return ( {(context) => { return this.renderAuthor(context); }} ); }; renderAuthor = ({packageMeta}) => { const { license } = packageMeta.latest; if (!license) { return null; } return ( {this.renderLicense(license)} ); } renderLicense = (license) => { return ( {license} ); } } export default License;