<template>
  <p @click="fly">{{ data.address }}</p>
</template>

<script lang="ts" setup>
import { flyLatLng } from "@/hook/use-fly";
import { Address } from "@/store/map";

const props = defineProps<{ data: Address }>();

const fly = () => {
  console.log("fly", props.data.latlng);
  flyLatLng(props.data.latlng);
};
</script>
