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

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

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