2024-08-18 18:59:59 +00:00
|
|
|
<script lang="ts">
|
2024-09-29 22:37:31 +00:00
|
|
|
import Info from '$lib/components/icons/Info.svelte';
|
|
|
|
|
|
2024-08-18 18:59:59 +00:00
|
|
|
export let content = '';
|
|
|
|
|
</script>
|
|
|
|
|
|
2024-11-30 08:36:01 +00:00
|
|
|
<div class="flex my-2 gap-2.5 border px-4 py-3 border-red-600/10 bg-red-600/10 rounded-lg">
|
2024-09-29 22:37:31 +00:00
|
|
|
<div class=" self-start mt-0.5">
|
2024-11-30 08:36:01 +00:00
|
|
|
<Info className="size-5 text-red-700 dark:text-red-400" />
|
2024-09-29 22:37:31 +00:00
|
|
|
</div>
|
2024-08-18 18:59:59 +00:00
|
|
|
|
2024-09-29 22:37:31 +00:00
|
|
|
<div class=" self-center text-sm">
|
2025-08-11 13:00:06 +00:00
|
|
|
{#if typeof content === 'string'}
|
|
|
|
|
{content}
|
|
|
|
|
{:else if typeof content === 'object' && content !== null}
|
|
|
|
|
{#if content?.error && content?.error?.message}
|
|
|
|
|
{content.error.message}
|
|
|
|
|
{:else if content?.detail}
|
|
|
|
|
{content.detail}
|
|
|
|
|
{:else if content?.message}
|
|
|
|
|
{content.message}
|
|
|
|
|
{:else}
|
|
|
|
|
{JSON.stringify(content)}
|
|
|
|
|
{/if}
|
|
|
|
|
{:else}
|
|
|
|
|
{JSON.stringify(content)}
|
|
|
|
|
{/if}
|
2024-08-18 18:59:59 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|