import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import InfoTooltip from '../../../components/ui/info-tooltip'; const CLASSNAME_WARNING = 'actionable-message--warning'; const CLASSNAME_DANGER = 'actionable-message--danger'; const CLASSNAME_WITH_RIGHT_BUTTON = 'actionable-message--with-right-button'; const typeHash = { warning: CLASSNAME_WARNING, danger: CLASSNAME_DANGER, }; export default function ActionableMessage({ message = '', primaryAction = null, secondaryAction = null, className = '', infoTooltipText = '', withRightButton = false, type = false, }) { const actionableMessageClassName = classnames( 'actionable-message', typeHash[type], withRightButton ? CLASSNAME_WITH_RIGHT_BUTTON : null, className, ); return (