import React, { MouseEventHandler } from "react"; import { Link } from "react-router-dom"; import { PostType } from "../types"; import { IntoPost } from "./intopost"; export type Props = { post: PostType; handleClick: MouseEventHandler; }; export default function Post({ handleClick, post }: Props) { return (
{post.date}
{post.counts}
); }