<template>
  <b-field>
    <b-button
      type="is-link"
      @click="
        $alertsGenericos.imprimirWarning($buefy, msjWarning, llamarGuardar)
      "
      expanded
    >
      Guardar
    </b-button>
  </b-field>
</template>

<script>
export default {
  props: {
    guardar: { type: Function, required: true },
    row: { type: Object, required: true, default: () => ({}) },
    msjWarning: { type: String, required: true },
  },
  methods: {
    llamarGuardar() {
      this.guardar(row)
    },
  },
}
</script>
