mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			981 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			981 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
| <script setup>
 | |
| import Modal from '../../Modal.vue';
 | |
| import Button from 'dashboard/components-next/button/Button.vue';
 | |
| 
 | |
| defineProps({
 | |
|   onClose: { type: Function, default: () => {} },
 | |
|   onConfirm: { type: Function, default: () => {} },
 | |
|   title: { type: String, default: '' },
 | |
|   message: { type: String, default: '' },
 | |
|   messageValue: { type: String, default: '' },
 | |
|   confirmText: { type: String, default: '' },
 | |
|   rejectText: { type: String, default: '' },
 | |
| });
 | |
| 
 | |
| const show = defineModel('show', { type: Boolean, default: false });
 | |
| </script>
 | |
| 
 | |
| <template>
 | |
|   <Modal v-model:show="show" :on-close="onClose">
 | |
|     <woot-modal-header
 | |
|       :header-title="title"
 | |
|       :header-content="message"
 | |
|       :header-content-value="messageValue"
 | |
|     />
 | |
|     <div class="flex items-center justify-end gap-2 p-8">
 | |
|       <Button faded slate type="reset" :label="rejectText" @click="onClose" />
 | |
|       <Button ruby type="submit" :label="confirmText" @click="onConfirm" />
 | |
|     </div>
 | |
|   </Modal>
 | |
| </template>
 | 
