<template>
  <b-table
    class="mb-6"
    :current-page="page"
    :data="data"
    :loading="isLoadingTable"
    :per-page="25"
    :row-class="(row, index) => pintarFila(row)"
    :total="total"
    @page-change="onPageChange"
    backend-pagination
    hoverable
    paginated
    striped
  >
  </b-table>
</template>

<script>
export default {
  components: {},
  props: {
    data: { type: Array, required: true, default: () => [] },
    isLoadingTable: { type: Boolean, required: true, default: false },
    onPageChange: { type: Function, required: true, default: () => {} },
    total: { type: Number, required: true, default: 0 },
    page: { type: Number, required: true, default: 0 },
  },
  data() {
    return {}
  },
  methods: {},
  watch: {},
  created() {},
}
</script>
