<template>
  <md-snackbar :md-position="position" :md-active.sync="loading" md-persistent>
    <p>{{s_text}}</p>
  </md-snackbar>
</template>

<script>
export default {
  name: 'SnackLoader',
  data: () => ({
    loading: false
  }),
  props: {
    position: {
      type: String,
      default: 'left'
    },
    s_text: {
      type: String
    }
  },
  methods: {
    setLoading(b) {
      this.loading = b;
    }}
}
</script>

<style>
.md-snackbar {
  background-color: #131213;
}
</style>