<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
    import { slide } from "svelte/transition";
    import Row from "./Row.svelte";

    export let warnings: string[] = [];
</script>

{#each warnings as warning}
    {#if warning}
        <Row>
            <div class="col-12 alert alert-warning mb-0" in:slide out:slide>
                {warning}
            </div>
        </Row>
    {/if}
{/each}
