Files
website/src/components/ReviewCard.tsx
T
2023-10-22 18:56:14 -04:00

25 lines
664 B
TypeScript

import Image from "next/image"
import Link from 'next/link';
type ReviewCardProps = {
title: string,
image: string,
url: string,
showText: boolean
}
export default function ReviewCard(props: ReviewCardProps) {
return (
<Link href={props.url}>
<div className="inline">
<Image alt={props.title + " cover"} width="160" height="160" src={props.image} className="p-2" />
{
props.showText ?
<p className="font-bold pt-2 text-center">{props.title}</p>
:
""
}
</div>
</Link>
)
}