feat: prepare new popups

This commit is contained in:
2026-09-08 13:00:53 +02:00
parent be2a9f3a3e
commit 946ba84518
4 changed files with 47 additions and 2 deletions
@@ -0,0 +1,25 @@
<script setup lang="ts">
import PopupElement from '../popups/PopupElement.vue';
const show = defineModel<boolean>();
const props = defineProps<{
'title': string;
'message'?: string;
}>();
const close = () => {
show.value = false;
};
</script>
<template>
<div>
<PopupElement v-model="show">
<h2>{{ props.title }}</h2>
<p>{{ props.message }}</p>
<button @click="close">
Ok
</button>
</PopupElement>
</div>
</template>