import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
export default function ActionableMessage ({
message = '',
primaryAction = null,
secondaryAction = null,
className = '',
}) {
return (
{message}
{(primaryAction || secondaryAction) && (
{primaryAction && (
{primaryAction.label}
)}
{secondaryAction && (
{secondaryAction.label}
)}
)}
)
}
ActionableMessage.propTypes = {
message: PropTypes.string.isRequired,
primaryAction: PropTypes.shape({
label: PropTypes.string,
onClick: PropTypes.func,
}),
secondaryAction: PropTypes.shape({
label: PropTypes.string,
onClick: PropTypes.func,
}),
className: PropTypes.string,
}