@ -13,24 +13,26 @@ export default function ActionableMessage ({
< div className = "actionable-message__message" >
{ message }
< / d i v >
< div className = "actionable-message__actions" >
{ primaryAction && (
< div
className = { classnames ( 'actionable-message__action' , 'actionable-message__action--primary' ) }
onClick = { primaryAction . onClick }
>
{ primaryAction . label }
< / d i v >
) }
{ secondaryAction && (
< div
className = { classnames ( 'actionable-message__action' , 'actionable-message__action--secondary' ) }
onClick = { secondaryAction . onClick }
>
{ secondaryAction . label }
< / d i v >
) }
< / d i v >
{ ( primaryAction || secondaryAction ) && (
< div className = "actionable-message__actions" >
{ primaryAction && (
< div
className = { classnames ( 'actionable-message__action' , 'actionable-message__action--primary' ) }
onClick = { primaryAction . onClick }
>
{ primaryAction . label }
< / d i v >
) }
{ secondaryAction && (
< div
className = { classnames ( 'actionable-message__action' , 'actionable-message__action--secondary' ) }
onClick = { secondaryAction . onClick }
>
{ secondaryAction . label }
< / d i v >
) }
< / d i v >
) }
< / d i v >
)
}