<script>
import { FwbSpinner } from 'flowbite-vue'
import { mapGetters} from 'vuex'

export default {
  name: 'RoutesLoader',
  components: {FwbSpinner},
  computed: {
    ...mapGetters('proxy', ["routesState"]),
  },
}
</script>

<template>
  <div
    v-if="routesState === 'loading'"
    class="w-full flex justify-center items-center"
  >
    <div class="flex items-center">
      <fwb-spinner
        size="8"
        class="mr-2"
      /> Загрузка...
    </div>
  </div>
</template>
