import React from 'react'; import { LegacyButton, ButtonGroup } from '@ohif/ui'; import { useTranslation } from 'react-i18next'; function ExportReports({ segmentations, tmtvValue, config, commandsManager }) { const { t } = useTranslation('PanelSUVExport'); return ( <> {segmentations?.length ? (
{/* TODO Revisit design of ButtonGroup later - for now use LegacyButton for its children.*/} { commandsManager.runCommand('exportTMTVReportCSV', { segmentations, tmtv: tmtvValue, config, }); }} > {t('Export CSV')} { commandsManager.runCommand('createTMTVRTReport'); }} disabled={tmtvValue === null} > {t('Create RT Report')}
) : null} ); } export default ExportReports;