19 lines
495 B
Vue
19 lines
495 B
Vue
<script setup lang="ts">
|
|
import { CircleAlert } from 'lucide-vue-next';
|
|
import type { InlineSaveStatusProps } from '@/types';
|
|
|
|
withDefaults(defineProps<InlineSaveStatusProps>(), {
|
|
error: '',
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
v-if="state === 'error' || error"
|
|
class="flex items-center gap-1.5 pt-1 text-[11px]"
|
|
>
|
|
<CircleAlert class="text-destructive size-3" />
|
|
<span class="text-destructive">{{ error || 'Could not save.' }}</span>
|
|
</div>
|
|
</template>
|