--- import type {Post} from "@/types"; import {formatDatetime} from '@/lib/format.ts' interface Props { posts: Post[] } const {posts} = Astro.props ---