import { Link } from 'react-router-dom' import type { FC, MouseEvent } from 'react' import type { Post } from '@/types' type Props = { posts: Post[] onClick?: (event: MouseEvent) => void } export default (({ posts, onClick }: Props) => (
{posts.map ((post, i) => ( {post.title ))}
)) satisfies FC