<template>
    <slot v-if="hasAuth"></slot>
</template>

<script>
	export default {
		name: "st-auth",
		props:{
			auth : {
				type : [ String, Array ],
				required : true
			}
		},
		computed:{
			hasAuth(){
				const auth = Array.isArray(this.auth) ? this.auth : [this.auth];
				return this.$s.hasAuth(auth);
			}
		}
	}
</script>