"use client"; import { memo } from "react"; import ContentContainer from "../../content/ContentContainer"; import { getAssetPath, guideBannerLogoArrowPath, } from "../../../../lib/assetUtils"; import type { ContentBannerViewProps } from "./ContentBanner.types"; /** * Figma: ContentBanner on content page template (22078:791901) — left column * title + description; logo mark (22078:806960) in right column. */ function ContentBannerGuideView({ post, }: Pick) { const { title, description } = post.frontmatter; return (

{title}

{description ? (

{description}

) : null}
{/* eslint-disable-next-line @next/next/no-img-element */}
); } function ContentBannerArticleView({ post, leadingImageSrc, leadingImageAlt, backgroundImageSm, backgroundImageMd, }: ContentBannerViewProps) { if (!backgroundImageSm || !backgroundImageMd) { return null; } return (
); } function ContentBannerView(props: ContentBannerViewProps) { if (props.variant === "guide") { return ; } return ; } ContentBannerView.displayName = "ContentBannerView"; export default memo(ContentBannerView);