44 lines
883 B
JavaScript
44 lines
883 B
JavaScript
|
|
import React from 'react';
|
||
|
|
import PropTypes from 'prop-types';
|
||
|
|
|
||
|
|
import { TabComponents } from '@ohif/ui';
|
||
|
|
|
||
|
|
// Tabs
|
||
|
|
import { HotkeysPreferences } from './HotkeysPreferences';
|
||
|
|
import { WindowLevelPreferences } from './WindowLevelPreferences';
|
||
|
|
import { GeneralPreferences } from './GeneralPreferences';
|
||
|
|
|
||
|
|
const tabs = [
|
||
|
|
{
|
||
|
|
name: 'Hotkeys',
|
||
|
|
Component: HotkeysPreferences,
|
||
|
|
customProps: {},
|
||
|
|
hidden: false,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'General',
|
||
|
|
Component: GeneralPreferences,
|
||
|
|
customProps: {},
|
||
|
|
hidden: false,
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'Window Level',
|
||
|
|
Component: WindowLevelPreferences,
|
||
|
|
customProps: {},
|
||
|
|
hidden: true,
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
function UserPreferences({ hide }) {
|
||
|
|
const customProps = {
|
||
|
|
onClose: hide,
|
||
|
|
};
|
||
|
|
return <TabComponents tabs={tabs} customProps={customProps} />;
|
||
|
|
}
|
||
|
|
|
||
|
|
UserPreferences.propTypes = {
|
||
|
|
hide: PropTypes.func,
|
||
|
|
};
|
||
|
|
|
||
|
|
export { UserPreferences };
|