Files
ohif-viewer/platform/viewer/src/components/UserPreferences/UserPreferences.js
T

42 lines
861 B
JavaScript
Raw Normal View History

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';
2020-02-20 18:25:26 -03:00
import './UserPreferences.styl';
const tabs = [
{
name: 'Hotkeys',
Component: HotkeysPreferences,
customProps: {},
},
{
name: 'General',
Component: GeneralPreferences,
customProps: {},
},
{
name: 'Window Level',
Component: WindowLevelPreferences,
customProps: {},
},
];
function UserPreferences({ hide }) {
const customProps = {
onClose: hide,
};
return <TabComponents tabs={tabs} customProps={customProps} />;
}
UserPreferences.propTypes = {
hide: PropTypes.func,
};
export { UserPreferences };