<template>
  <div>
    <PvzMap :pickup-points="pickupPoints" />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
import PvzMap from '~/components/PvzMap.vue'

const pickupPoints = ref([])

const { data } = useFetch('/api/yandex')
pickupPoints.value = data.value?.points
console.log(pickupPoints?.value)
</script>
