<script setup>
import {inject, ref} from "vue";
import {useForm } from "@inertiajs/vue3";
import Modal2 from "@core/Components/Modal2.vue";
const emit = defineEmits([
'onSuccess',
])
const visible = ref(false);
defineExpose({
openSidebar
})
</script>
<template>
<Sidebar v-model:visible="visible">
<template #default>
...... content .......
</template>
</Sidebar>
<Modal2 />
</template>
<template>
<div>Modal2</div>
</template>
usel://uselTemplateName/param1/param2/param3