import { formatDate } from "@/lib/helpers"; import { NextSeo } from "next-seo"; import Image from "next/image"; import Link from "next/link"; import React from "react"; import style from "./BookReview.module.css"; import ExternalLink from "../ExternalLink/ExternalLink"; function BookReview({ review, html }) { const { title, image, author, description, url, tags, rating, readDate } = review; const imageUrl = image ? `${process.env.NEXT_PUBLIC_CONTENT_API_BASE_URL}/assets/${image}` : undefined; return ( <>

{title}
by {author}

Back...
{imageUrl && ( )}
(no review)

", }} />

{tags?.length && ( <> Genres: {tags.join(",")}
)} Rating: {rating}/5
Read on:  {formatDate(readDate)}

View on The StoryGraph

); } export default BookReview;