<script setup>
const props = defineProps({
  variant: Object,
});
</script>

<template>
  <a
    @click="
      $emit('clickevent', {
        name: 'dataevent',
        data: {
          modal: {
            title: 'Cập nhật sản phẩm',
            width: '90%',
            height: '400px',
            component: 'imports/EditProduct',
            vbind: { variant: props.variant },
          },
        },
      })
    "
  >
    <span class="icon">
      <Icon
        name="material-symbols:edit-outline-rounded"
        :size="18"
      />
    </span>
  </a>
</template>
