import React from 'react'; import { useToolbar, ButtonLocation } from '@ohif/core'; interface ToolRowWrapperProps { buttonSection: string; className?: string; show?: boolean; } function ToolRowWrapper({ buttonSection, className = '', show = true }: ToolRowWrapperProps) { const { onInteraction, toolbarButtons } = useToolbar({ buttonSection, }); // No need for debugger statement if (!toolbarButtons?.length) { return null; } return (