|
export const getClassNameFromStatus = ( status = 'default' ): string => {
|
|
switch ( status ) {
|
|
case 'error':
|
|
return 'woocommerce-error';
|
|
case 'success':
|
|
return 'woocommerce-message';
|
|
case 'info':
|
|
case 'warning':
|
|
return 'woocommerce-info';
|
|
}
|
|
return '';
|
|
};
|