Files
MusicPlayer/web/src/components/shared/InformationPopup.vue
T
2026-09-08 13:00:53 +02:00

26 lines
555 B
Vue

<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>