github-actions[bot]
GitHub deploy: 2e9fe55e78d510af1fc7bc06a0c7edb71274013d
b9b8d18
raw
history blame contribute delete
402 Bytes
<script lang="ts">
import { onMount, getContext } from 'svelte';
import Message from './Message.svelte';
const i18n = getContext('i18n');
export let messages = [];
</script>
<div class="py-3 space-y-3">
{#each messages as message, idx}
<Message
{message}
{idx}
onDelete={() => {
messages = messages.filter((message, messageIdx) => messageIdx !== idx);
}}
/>
{/each}
</div>