import { CommentIcon, HeartIcon, LinkIcon, PencilIcon } from "assets/Icons" import Layout from "components/Layout" import PostList from "components/PostList" import { Post } from "contentlayer/generated" import { ReactNode } from "react" import { data } from "assets/data" import ToolButton, { Tool } from "components/ToolButton" import { format, formatDistanceToNow, parseISO } from "date-fns" interface PostProps { post: Post children: ReactNode } export default function PostLayout({ post, children }: PostProps) { let copyLinkTool: Tool = { icon: , href: `${data.site_url}/post/${post.slug}`, tooltip: "Copy link to clipboard", } let editTool: Tool = { icon: , href: post.edit_url, tooltip: "Propose a change to this page on GitHub.", } return ( }>
  • } tooltip={"Comming soon: Like post"} state={2} />
  • } tooltip={"Comming soon: Add a comment or view all comments"} state={2} />
  • {/* Link to raw markdown in data repository for directly editing, or adding issues. TODO: Later this could become an option picker with edit, create issue */}
  • {/* Copy post link to clipboard for sharing, etc. */}
  • {post.title}

    ∫
    {children}
    ) }