import React, { MouseEventHandler } from "react"; import { PostType } from "../types"; type Props = { post: PostType; handleClick: MouseEventHandler; }; export default function Post({ handleClick, post }: Props) { return (