import * as React from 'react';
import PdbHeaderCache from '../cache/PdbHeaderCache';
import { observer } from 'mobx-react';
import {
TableCellStatusIndicator,
TableCellStatus,
} from 'cbioportal-frontend-commons';
import { generatePdbInfoSummary } from '../lib/PdbUtils';
import TextExpander from './TextExpander';
export interface IPdbChainInfoProps {
pdbId: string;
chainId: string;
cache?: PdbHeaderCache;
truncateText?: boolean;
summaryFormat?: boolean;
}
@observer
export default class PdbChainInfo extends React.Component<
IPdbChainInfoProps,
{}
> {
render() {
let pdbInfo = null;
let moleculeInfo = null;
if (this.props.cache) {
const cacheData = this.props.cache.get(this.props.pdbId);
if (cacheData === null) {
pdbInfo = (