import List from '@material-ui/core/List';
import ListItemText from '@material-ui/core/ListItemText';
import React, { Component } from 'react';
// @ts-ignore
import { DetailContextConsumer } from '../../pages/version/Version';
import CopyToClipBoard from '../CopyToClipBoard';
// logos of package managers
import npm from './img/npm.svg';
import pnpm from './img/pnpm.svg';
import yarn from './img/yarn.svg';
import { Heading, InstallItem, PackageMangerAvatar } from './styles';
class Install extends Component {
public render() {
return (
{(context: any) => {
return context && context.packageName && this.renderCopyCLI(context);
}}
);
}
public renderCopyCLI = ({ packageName }: { packageName: string }) => {
return (
<>
{'Installation'}}>{this.renderListItems(packageName)}
>
);
};
public renderListItems = (packageName: string) => {
return (
<>
} secondary={'Install using NPM'} />
} secondary={'Install using Yarn'} />
} secondary={'Install using PNPM'} />
>
);
};
}
export default Install;