<script setup lang="ts">
const props = defineProps({
  title: String,
  text: String,
  bulk: Boolean
})

console.log(props.bulk)
</script>

<template>
  <v-card>
    <v-card-title>
      <h3>{{ props.title }}</h3>
    </v-card-title>
    <v-card-text>
      <p>{{ props.text }}</p>
      <slot></slot>
    </v-card-text>
    <v-card-actions>
      <v-btn
      color="primary"
      @click="$emit('confirm',true, props.bulk)"
      >Conferma</v-btn>
      <v-btn
          color="accent"
          @click="$emit('confirm',false)"
      >Annulla</v-btn>
    </v-card-actions>
  </v-card>
</template>

<style scoped>

</style>