<?php
/*
* Plugin-Name: Product Designer App
* Plugin-URI: https://productdesignerapp.com
* Author: productdesignerapp
* Page: Printings
*/

if (!defined('ABSPATH'))
{
    exit;
}
?>
<div class="modal-body p-4" v-if="modal.type == 'message'">
    <div class="d-flex justify-content-center align-items-center flex-column gap-2 text-center">
        <i class="material-icons material-symbols-outlined text-warning fs-1" v-if="modal.data.type == 'warning'">warning</i>
        <i class="material-icons material-symbols-outlined text-success fs-1" v-if="modal.data.type == 'success'">task_alt</i>
        <i class="material-icons material-symbols-outlined text-danger fs-1" v-if="modal.data.type == 'error'">error</i>
        <h3>{{ modal.data.title }}</h3>
        <p class="mt-1">{{ modal.data.text }}</p>
        <div class="d-flex gap-1 justify-content-center w-100 btn-group">
            <button type="button" class="btn btn-light waves-effect rounded-2" @click="modal.show = false">{{ langs.cancel }}</button>
            <button v-if="modal.data.confirm != undefined" type="button" class="btn rounded-2" :class="{'btn-warning':modal.data.type == 'warning', 'btn-success':modal.data.type == 'success', 'btn-danger':modal.data.type == 'error'}" @click="confirmEvt(modal.data.confirm)">{{ modal.data.btn }}</button>
        </div>
    </div>
</div>