import * as React from 'react';
import { If, Then, Else } from 'react-if';
const ONCOKB_URL = 'https://oncokb.org';
export function getOncoKBReferenceInfo(
hugoGeneSymbol: string,
isCancerGene: boolean,
oncokbAnnotated: boolean,
isOncogene: boolean,
isTumorSuppressorGene: boolean
): JSX.Element | undefined {
if (isCancerGene) {
let content = '';
if (isOncogene || isTumorSuppressorGene) {
content = ' as a ';
let subContent = [];
if (isOncogene) {
subContent.push('oncogene');
}
if (isTumorSuppressorGene) {
subContent.push('tumor suppressor gene');
}
content = `${content} ${subContent.join(' and ')}`;
}
return (
{hugoGeneSymbol}
{hugoGeneSymbol}
is included in the
{getOncoKBCancerGeneListLinkout()}
{(isOncogene || isTumorSuppressorGene) && (
{content}
)}
.
);
}
return undefined;
}
export function getOncoKBCancerGeneListLinkout() {
return (
OncoKB™ Cancer Gene List
);
}