<template>
    <div class="row align-items-center justify-content-center absolute w-100" style="left: 15px;">
        <div class="col">
            <hollow-dots-spinner :animation-duration="1000" :dots-num="5" :color="getColor" class="m-auto"></hollow-dots-spinner>
        </div>
    </div>
</template>
<script>
    import { HollowDotsSpinner  } from 'epic-spinners';

    export default {
        props: {
            color: {
                type: String,
                default: 'primary'
            }
        },
        components: {
            HollowDotsSpinner
        },
        computed: {
            getColor(){
               switch (this.color) {
                   case 'primary':
                       return '#ff1d5e';
                   case 'success':
                       return '#47b5ab';
                   case 'danger':
                       return '#ff3738'
               }
            }
        }
    }
</script>
