<script>
    import SvelteMarkdown from 'svelte-markdown';

    export let at;
    export let body;
</script>

<div class="message relative">
    <span class="timestamp chip variant-soft absolute top-0 right-0">{at}</span>
    <section class="p-1">
        <SvelteMarkdown source={body} />
    </section>
</div>

<style>
    .message .timestamp {
        display: none;
    }
    .message:hover .timestamp {
        display: flex;
    }
</style>
