- { title ? {title} : null }
- {message}
+
+ { title ? {title} : null }
+ {message}
+
{action ? {action}
: null }
);
@@ -95,7 +93,7 @@ export default function ToastWrapper(props) {
ToastWrapper.propTypes = {
action: PropTypes.node,
className: PropTypes.string,
- message: PropTypes.string,
+ message: PropTypes.node,
title: PropTypes.string,
variant: PropTypes.oneOf(["error", "info", "success", "warning"]).isRequired
};