<script setup lang="ts">
import { ModelRef } from 'vue';
import cardView from './cardView.vue';

const showDialog: ModelRef<boolean> = defineModel()

defineProps({
  title: String,
  icon: {
    type: String
  },
  subtitle: {
    type: String,
    default: ""
  }
})
</script>

<template>
  <v-dialog max-width="1200" v-model="showDialog">
    <card-view
      :title="title"
      :subtitle="subtitle"
      :icon="icon"
    >
      <slot></slot>

      <template #actions>
        <slot name="actions"></slot>
      </template>
    </card-view>
  </v-dialog>
</template>