2020-01-29 13:37:25 -06:00
|
|
|
<template>
|
|
|
|
<div class="fpezltsf" :class="{ warn }">
|
2021-04-20 09:22:59 -05:00
|
|
|
<i v-if="warn" class="fas fa-exclamation-triangle"></i>
|
|
|
|
<i v-else class="fas fa-info-circle"></i>
|
2020-01-29 13:37:25 -06:00
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-09-06 04:09:17 -05:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2020-01-29 13:37:25 -06:00
|
|
|
|
2022-09-06 04:09:17 -05:00
|
|
|
const props = defineProps<{
|
|
|
|
warn?: boolean;
|
|
|
|
}>();
|
2020-01-29 13:37:25 -06:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.fpezltsf {
|
|
|
|
padding: 16px;
|
|
|
|
font-size: 90%;
|
|
|
|
background: var(--infoBg);
|
|
|
|
color: var(--infoFg);
|
2021-01-11 05:38:34 -06:00
|
|
|
border-radius: var(--radius);
|
2020-01-29 13:37:25 -06:00
|
|
|
|
|
|
|
&.warn {
|
|
|
|
background: var(--infoWarnBg);
|
|
|
|
color: var(--infoWarnFg);
|
|
|
|
}
|
|
|
|
|
|
|
|
> i {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|