import { defineComponent } from "vue";
import { useRenderIcon } from "/@/components/ReIcon/src/hooks";

const ActionUpdate = defineComponent({
  name: "ActionUpdate",
  emits: ["update"],
  setup(_, { emit }) {
    return () => (
      <el-button
        class="reset-margin"
        onClick={() => emit("update")}
        link
        size="small"
        type="primary"
        icon={useRenderIcon("edits")}
      />
    );
  }
});

export default ActionUpdate;
