/** @jsx h */ import { h } from "preact"; interface PostListProps { posts: { id: string; title: string; content: string; shared: boolean }[]; } export default function PostList(props: PostListProps) { const onEdit = (id: string) => { location.href = `/${id}`; }; return (