<script lang="ts">
    import { BlogPostTag, type BlogPostLink } from "../../routes/blog/posts";

    let {
        posts,
    }: {
        posts: BlogPostLink[];
    } = $props();
</script>

<div class="entry-container">
    {#each posts as post}
        <div class="entry">
            <p>{post.post.title}</p>
            {#each post.post.tags as tag}
                <p>{tag}</p>
            {/each}
        </div>
    {/each}
</div>