--- // Import the necessary dependencies import { Image } from "astro:assets"; import heroImage from "../../../images/hero-image.avif"; import PrimaryCTA from "../../ui/buttons/PrimaryCTA.astro"; import SecondaryCTA from "../../ui/buttons/SecondaryCTA.astro"; import ReviewComponent from "../../ui/blocks/ReviewComponent.astro"; // Define props from Astro const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, withReview, avatars, starCount, rating, reviews } = 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; } ---

{subTitle &&

{subTitle}

}
{primaryBtn && } {secondaryBtn && }
{ withReview ? ( ) : "" }
Stack of ScrewFast product boxes containing assorted hardware tools