import React from 'react'; import { Tooltip } from '@ohif/ui'; import classnames from 'classnames'; import { useToolbar } from '@ohif/core'; export function Toolbar({ servicesManager, buttonSection = 'primary' }) { const { toolbarButtons, onInteraction } = useToolbar({ servicesManager, buttonSection, }); if (!toolbarButtons.length) { return null; } return ( <> {toolbarButtons.map(toolDef => { if (!toolDef) { return null; } const { id, Component, componentProps } = toolDef; const tool = ( ); return
{tool}
; })} ); }