import React, { Component, ReactElement, Fragment } from 'react'; import { DetailContextConsumer, VersionPageConsumerProps } from '../../pages/version/Version'; import Readme from '../Readme'; import Versions from '../Versions'; import { preventXSS } from '../../utils/sec-utils'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import { Content } from './styles'; import Dependencies from '../Dependencies'; import UpLinks from '../UpLinks'; interface DetailContainerState { tabPosition: number; } class DetailContainer
extends Component
{
public state = {
tabPosition: 0,
};
public render(): ReactElement
{tabPosition === 0 && this.renderReadme(readMe)}
{tabPosition === 1 &&