import Link from "next/link"; import { format } from "date-fns"; import Hits from "../hits/Hits"; import { DateIcon, TagIcon, EditIcon, ViewsIcon } from "../icons"; import * as config from "../../lib/config"; import styles from "./Meta.module.scss"; export type Props = { title: string; date: string; slug: string; tags?: string[]; }; const Meta = ({ title, date, slug, tags = [] }: Props) => ( <>
{format(new Date(date), "MMMM d, yyyy")}
{tags.length > 0 && (
{tags.map((tag) => ( {tag} ))}
)}
Improve This Post

{title}

); export default Meta;