mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
feat: prepare new popups
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user