import React, { ReactElement } from 'react'; import { UiControl } from './Lv2Plugin'; import Typography from "@mui/material/Typography"; import Divider from '@mui/material/Divider'; import ToolTipEx from './ToolTipEx' interface ControlTooltipProps { children: ReactElement, uiControl: UiControl valueTooltip?: React.ReactNode; } export default function ControlTooltip(props: ControlTooltipProps) { let { children, uiControl, valueTooltip } = props; if (uiControl.comment && (uiControl.comment !== uiControl.name)) { return ( {uiControl.name} {uiControl.comment} )} >
{children}
); } else { return ( {uiControl.name} )} >
{children}
); } }