<template>
  <el-row>
    <NoobButton type="primary" @click="emit('confirm')">{{
      t("base.confirm")
    }}</NoobButton>
    <el-space fill />
    <NoobButton type="info" @click="emit('cancel')">{{
      t("base.cancel")
    }}</NoobButton>
  </el-row>
</template>

<script setup lang="ts">
import { NoobButton } from "noob-mengyxu";
import { useI18n } from "vue3-i18n";
const { t } = useI18n();

const emit = defineEmits<{
  (e: "confirm"): void | Promise<void>;
  (e: "cancel"): void | Promise<void>;
}>();
</script>
