import * as React from 'react'; interface Props { postId: number; likesCount: number; liked: number; handleLikeSubmit( postId: number, isLike: boolean, authenticityToken: string, ): void; authenticityToken: string; isLoggedIn: boolean; } const LikeButtonP = ({ postId, likesCount, liked, handleLikeSubmit, authenticityToken, isLoggedIn, }: Props) => (