import { Link } from "@remix-run/react"; type PostProps = { filename: string; title: string; published: string; description: string | null; }; export function Post({ title, description, filename, published }: PostProps) { return (
{title} {`(${new Date( published ).toLocaleDateString()})`}
{description && (
{description}
)}
); }