* fix: Add typed services * fix: Typed services - PR changes * remaining of the cineService and toolbarService renaming --------- Co-authored-by: Alireza <ar.sedghi@gmail.com>
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import { ToolbarButton } from '@ohif/ui';
|
|
import ToolbarDivider from './Toolbar/ToolbarDivider.tsx';
|
|
import ToolbarLayoutSelector from './Toolbar/ToolbarLayoutSelector.tsx';
|
|
import ToolbarSplitButton from './Toolbar/ToolbarSplitButton.tsx';
|
|
|
|
export default function getToolbarModule({ commandsManager, servicesManager }) {
|
|
return [
|
|
{
|
|
name: 'ohif.divider',
|
|
defaultComponent: ToolbarDivider,
|
|
clickHandler: () => {},
|
|
},
|
|
{
|
|
name: 'ohif.action',
|
|
defaultComponent: ToolbarButton,
|
|
clickHandler: () => {},
|
|
},
|
|
{
|
|
name: 'ohif.radioGroup',
|
|
defaultComponent: ToolbarButton,
|
|
clickHandler: () => {},
|
|
},
|
|
{
|
|
name: 'ohif.splitButton',
|
|
defaultComponent: ToolbarSplitButton,
|
|
clickHandler: () => {},
|
|
},
|
|
{
|
|
name: 'ohif.layoutSelector',
|
|
defaultComponent: ToolbarLayoutSelector,
|
|
clickHandler: (evt, clickedBtn, btnSectionName) => {},
|
|
},
|
|
{
|
|
name: 'ohif.toggle',
|
|
defaultComponent: ToolbarButton,
|
|
clickHandler: () => {},
|
|
},
|
|
];
|
|
}
|