<template>
  <div>
    <BuscarModulo
      :admin="admin"
      :modulo="modulo"
      :imprimirError="imprimirError"
      :imprimirWarning="imprimirWarning"
      :imprimirMensaje="imprimirMensaje"
      :updateIsLoading="updateIsLoading"
      :updateModulo="updateModulo"
    />
  </div>
</template>

<script>
import BuscarModulo from '@/components/admin/BuscarModulo'

export default {
  components: {
    BuscarModulo,
  },
  props: {
    admin: { type: Object, required: true },
    imprimirError: { type: Function, required: true },
    imprimirWarning: { type: Function, required: true },
    imprimirMensaje: { type: Function, required: true },
    updateIsLoading: { type: Function, required: true },
  },
  data() {
    return {
      modulo: { institucion: {} },
    }
  },
  methods: {
    updateModulo(valorObject) {
      this.modulo = valorObject
    },
  },
}
</script>
