--- // Import the necessary dependencies import { Image } from "astro:assets"; import PrimaryCTA from "@components/ui/buttons/PrimaryCTA.astro"; import SecondaryCTA from "@components/ui/buttons/SecondaryCTA.astro"; import ReviewComponent from "@components/ui/blocks/ReviewComponent.astro"; // Define props from Astro const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, withReview, avatars, starCount, rating, reviews, src, alt } = Astro.props; // Define TypeScript interface for props interface Props { title: string; subTitle?: string; primaryBtn?: string; primaryBtnURL?: string; secondaryBtn?: string; secondaryBtnURL?: string; withReview?: boolean; avatars?: Array; starCount?: number; rating?: string; reviews?: string; src?: any; alt?: string; } ---

{subTitle &&

{subTitle}

}
{primaryBtn && } {secondaryBtn && }
{ withReview ? ( ) : "" }
{src && alt && {alt} }