<template>
  <div class="page-loader-wrapper" v-if="isLoading && enabled">
    <div class="loader">
      <img class="zmdi-hc-spin" :src="rootPath + 'images/logo.svg'" width="64" height="64" />
    </div>
  </div>
</template>
<script>
  import mixinPage from '../../mixins/page';

  import { mapState } from 'vuex';

  export default {
    name: 'loader',
    mixins: [mixinPage],
    computed: {
      ...mapState('admin/loader', ['isLoading', 'enabled'])
    },
    data() {
      return {};
    }
  };
</script>
<style></style>
