Foxnouns.NET/Foxnouns.Frontend/src/lib/components/ErrorAlert.svelte

12 lines
260 B
Svelte
Raw Normal View History

<script lang="ts">
import type { RawApiError } from "$api/error";
import Error from "./Error.svelte";
type Props = { error: RawApiError };
let { error }: Props = $props();
</script>
<div class="alert alert-danger" role="alert">
<Error {error} />
</div>