You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
825 B
38 lines
825 B
<template>
|
|
<div class="empty-state">
|
|
<div class="empty-state__container">
|
|
<span :class="chamiloIconToClass[icon]" aria-hidden="true" class="empty-state__icon" />
|
|
<p class="empty-state__summary" v-text="summary" />
|
|
<p class="empty-state__detail" v-text="detail" />
|
|
<slot />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { chamiloIconToClass } from "./basecomponents/ChamiloIcons"
|
|
import { iconValidator } from "./basecomponents/validators"
|
|
|
|
defineProps({
|
|
summary: {
|
|
type: String,
|
|
default: "",
|
|
required: true,
|
|
},
|
|
detail: {
|
|
type: String,
|
|
default: "",
|
|
required: false,
|
|
},
|
|
icon: {
|
|
type: String,
|
|
default: "",
|
|
validator: (value) => {
|
|
if (value === "") {
|
|
return true
|
|
}
|
|
return iconValidator(value)
|
|
},
|
|
},
|
|
})
|
|
</script>
|
|
|