<script setup lang="ts">
import {WarningFilled} from '@element-plus/icons-vue';
import {ElIcon} from 'element-plus';

defineProps<{ message: string }>();
</script>

<template>
  <div class="ai-error-notice">
    <ElIcon><WarningFilled /></ElIcon>
    <span>{{ message }}</span>
  </div>
</template>

<style scoped>
.ai-error-notice {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--el-color-danger);
  background: var(--el-color-danger-light-9);
  border-radius: 8px;
}
</style>
