import React from 'react'; import SVGIcon from 'sdc-ui/lib/react/SVGIcon.js'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger.js'; import Tooltip from 'react-bootstrap/lib/Tooltip.js'; function tooltip (msg) { return ( {msg} ); }; const IconWithOverlay = ({overlayMsg}) => ( ); function renderErrorOrCheck({hasError, overlayMsg}) { if (hasError === undefined) { return ; } if (hasError) { return overlayMsg ? : ; } return ; } const SelectActionTableRow = ({children, actionIcon, onAction, showAction, hasError, hasErrorIndication, overlayMsg}) => (
{children}
{onAction && } {hasErrorIndication && renderErrorOrCheck({hasError, overlayMsg})}
); export default SelectActionTableRow;