You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							442 B
						
					
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							442 B
						
					
					
				| "use strict";
 | |
| 
 | |
| Object.defineProperty(exports, "__esModule", {
 | |
|   value: true
 | |
| });
 | |
| exports.addNotice = exports.ADD_NOTICE = void 0;
 | |
| const ADD_NOTICE = 'ADD_NOTICE';
 | |
| exports.ADD_NOTICE = ADD_NOTICE;
 | |
| 
 | |
| const addNotice = (data = {
 | |
|   message: ''
 | |
| }) => ({
 | |
|   type: ADD_NOTICE,
 | |
|   data: {
 | |
|     message: data.message,
 | |
|     id: Math.random().toString(36).substr(2, 9),
 | |
|     type: data.type || 'success',
 | |
|     progress: 0
 | |
|   }
 | |
| });
 | |
| 
 | |
| exports.addNotice = addNotice; |