<script setup lang="ts">
import { defineProps } from "vue";
import { VideoCamera } from "@element-plus/icons-vue";
import { NormalToolbar } from "md-editor-v3";

const props = defineProps<{
  insert?: Function;
}>();

const onClick = () => {
  console.log("video");
  // TODO
  // emitHandler('video');
  props.insert?.(() => ({
    targetValue: "hello video",
  }));
};
</script>
<template>
  <NormalToolbar title="video" @onClick="onClick">
    <template #trigger>
      <VideoCamera width="18" />
    </template>
  </NormalToolbar>
</template>
