<script setup>
  import { ref } from 'vue'

  const props = defineProps({
      title:{
        type: String
      },
      dialog: {
          type: Boolean
      }
  })
//   const dialog = ref(false)
</script>
<template>
  <div class="text-center pa-4">
    <!-- <v-btn @click="dialog = true" class="ms-auto">
      coba
    </v-btn> -->

    <v-dialog
      v-model="props.dialog"
      width="auto"
    >
      <v-card
        max-width="400"
        prepend-icon="mdi-update"
        text="Your application will relaunch automatically after the update is complete."
        title="Update in progress"
      >
        <template v-slot:actions>
          <v-btn
            class="ms-auto"
            text="Ok"
            @click="$emit('dialog', false)"
          ></v-btn>
        </template>
      </v-card>
    </v-dialog>
  </div>
</template>