"use client"; import { memo } from "react"; import Button from "../Button"; import { getAssetPath } from "../../../lib/assetUtils"; import type { ContentLockupViewProps } from "./ContentLockup.types"; function ContentLockupView({ title, subtitle, description, ctaText, buttonClassName, variant, linkText, linkHref, alignment, titleId, styles, }: ContentLockupViewProps) { return (
{variant === "ask" || variant === "ask-inverse" ? ( /* Simplified structure for ask variant */
{title ? (

{title}

) : null}
{subtitle ?

{subtitle}

: null}
) : ( /* Full structure for other variants */
{/* Title and subtitle group */}
{/* Title container */}
{title ? (

{title}

) : null} {variant === "hero" && ( )}
{/* Subtitle */} {subtitle ?

{subtitle}

: null}
{/* Description */} {description &&

{description}

}
)} {/* Link for feature variant */} {variant === "feature" && linkText && ( {linkText} )} {/* CTA Button */} {ctaText && (
{/* Small button for xsm and sm breakpoints */}
{/* Large button for md and lg breakpoints */}
{/* XLarge button for xl breakpoint */}
)}
); } ContentLockupView.displayName = "ContentLockupView"; export default memo(ContentLockupView);