| 9 |
export const HeaderCellInfoWrapper = ({ children, info, className, variant = 'tooltip', popoverProps, tooltipProps, ariaLabel }) => (_jsxs("div", { className: css(styles.tableColumnHelp, className), children: [typeof children === 'string' ? _jsx(TableText, { children: children }) : children, _jsx("span", { className: css(styles.tableColumnHelpAction), children: variant === 'tooltip' ? (_jsx(Tooltip, Object.assign({ content: info }, tooltipProps, { children: _jsx(Button, { variant: "plain", hasNoPadding: true, "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info', icon: _jsx(HelpIcon, {}) }) }))) : (_jsx(Popover, Object.assign({ bodyContent: info }, popoverProps, { children: _jsx(Button, { variant: "plain", hasNoPadding: true, "aria-label": ariaLabel || (typeof info === 'string' && info) || 'More info', icon: _jsx(HelpIcon, {}) }) }))) })] })); |