import InfoBar from "~/components/InfoBar" import { Post, getPostSlugs, loadSinglePage } from "~/utils/post" export default async function Posts() { const slugs = await getPostSlugs() const posts = await Promise.all(slugs.map(loadSinglePage)) const sortedPosts = posts.sort((a: Post, b: Post) => b.date.valueOf() - a.date.valueOf()) return ( <>