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

const ActionChangePwd = defineComponent({
  name: "ActionChangePwd",
  props: actionProps,
  emits: ["changePwd"],
  setup(_, { emit }) {
    return () => (
      <el-button
        class="reset-margin"
        onClick={() => emit("changePwd")}
        link
        type="primary"
        icon={useRenderIcon("lock")}
      />
    );
  }
});

export default ActionChangePwd;
