<template>
  <label-hot-item :data="data" :x="x" :y="y" no-use-default :permanent="false">
    <div class="edit-hot">
      <span @click="onEdit(data)" class="fun-ctrl">
        <ui-icon type="edit" />
        {{ $t('sys.update') }}
      </span>
    </div>
  </label-hot-item>
</template>

<script setup lang="ts">
import LabelHotItem from './index.vue'
import { HotAtom } from '@/store'

defineProps<{
  data: HotAtom
  onEdit: (data: HotAtom) => {}
  x: number
  y: number
}>()
</script>

<style lang="sass" scoped>
@import './style.scss'
</style>
