<script setup>
import { useRouter } from 'vue-router';
const router = useRouter();
</script>

<template>
    <div v-if="router.currentRoute.value.fullPath === '/point/list'">
        <button class="btn btn-primary" @click="router.push({ name: 'point-create' })">Добавить точку</button>
    </div>
    <router-view></router-view>
</template>

<style></style>
