"use client"; import { memo } from "react"; import { ASSETS, getAssetPath } from "../../../../lib/assetUtils"; import Button from "../../buttons/Button"; import ContentLockup from "../../type/ContentLockup"; import type { BookViewProps } from "./Book.types"; /** * Figma: "Sections / Book" outer **22135:889706** (1440+: **Content Card Horizontal** 22135:890130): card `max-width` **1280px**, inner padding **scale/048**, gutter **scale/032** (`Content Lockup`: Small/Display 32 lh 1.1 Medium; body X Large / Paragraph **24 lh 32**). Section inset lg **scale/160** / **064** unchanged. */ function BookView({ title, description, buttonText, buttonHref, imageSrc, imageAlt, headingId, className = "", }: BookViewProps) { const coverSrc = imageSrc ?? getAssetPath(ASSETS.COMMUNITYRULES_COVER); return (
{/* eslint-disable-next-line @next/next/no-img-element -- marketing cover art */} {imageAlt
); } BookView.displayName = "BookView"; export default memo(BookView);