2023-01-07 11:55:01 +03:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type { ConfirmDialogChoice, ConfirmDialogLabel } from '~/types'
|
|
|
|
|
|
|
|
defineProps<ConfirmDialogLabel>()
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(evt: 'choice', choice: ConfirmDialogChoice): void
|
|
|
|
}>()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div flex="~ col" gap-6>
|
2024-01-09 22:51:36 +03:00
|
|
|
<div font-bold text-lg>
|
2023-01-07 11:55:01 +03:00
|
|
|
{{ title }}
|
|
|
|
</div>
|
|
|
|
<div v-if="description">
|
|
|
|
{{ description }}
|
|
|
|
</div>
|
|
|
|
<div flex justify-end gap-2>
|
|
|
|
<button btn-text @click="emit('choice', 'cancel')">
|
2023-01-16 11:56:36 +03:00
|
|
|
{{ cancel || $t('confirm.common.cancel') }}
|
2023-01-07 11:55:01 +03:00
|
|
|
</button>
|
|
|
|
<button btn-solid @click="emit('choice', 'confirm')">
|
2023-01-16 11:56:36 +03:00
|
|
|
{{ confirm || $t('confirm.common.confirm') }}
|
2023-01-07 11:55:01 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|