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, onDelete, hasError, hasErrorIndication, overlayMsg, showDelete}) => (
{children}
{onDelete && } {hasErrorIndication && renderErrorOrCheck({hasError, overlayMsg})}
); export default SelectActionTableRow;