This repository has been archived on 2026-02-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
serengo/src/lib/components/ErrorMessage.svelte

23 lines
349 B
Svelte

<script lang="ts">
interface Props {
message?: string;
show?: boolean;
}
let { message, show = true }: Props = $props();
</script>
{#if message && show}
<p class="error-message">{message}</p>
{/if}
<style>
.error-message {
color: #e53e3e;
font-size: 0.875rem;
text-align: center;
margin-top: 1rem;
padding: 0.5rem;
}
</style>