* fix:DICOM SR hydration - remove redundancies feat:Allow save and restore on non-tracking view * PR comments
35 lines
920 B
TypeScript
35 lines
920 B
TypeScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { useTranslation } from 'react-i18next';
|
|
|
|
import { Button, ButtonGroup } from '@ohif/ui';
|
|
|
|
function ActionButtons({ onExportClick, onCreateReportClick }) {
|
|
const { t } = useTranslation('MeasurementTable');
|
|
|
|
return (
|
|
<React.Fragment>
|
|
<ButtonGroup color="black" size="inherit">
|
|
<Button className="px-2 py-2 text-base" onClick={onExportClick}>
|
|
{t('Export CSV')}
|
|
</Button>
|
|
<Button className="px-2 py-2 text-base" onClick={onCreateReportClick}>
|
|
{t('Create Report')}
|
|
</Button>
|
|
</ButtonGroup>
|
|
</React.Fragment>
|
|
);
|
|
}
|
|
|
|
ActionButtons.propTypes = {
|
|
onExportClick: PropTypes.func,
|
|
onCreateReportClick: PropTypes.func,
|
|
};
|
|
|
|
ActionButtons.defaultProps = {
|
|
onExportClick: () => alert('Export'),
|
|
onCreateReportClick: () => alert('Create Report'),
|
|
};
|
|
|
|
export default ActionButtons;
|