--- // 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 Avatar from "../../ui/avatars/Avatar.astro"; import FullStar from "../../ui/stars/FullStar.astro"; import HalfStar from "../../ui/stars/HalfStar.astro"; // Define props from Astro const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, withReview, avatars, starCount = 0, 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 ? (
{ avatars?.map(src => ) } 7k+
{ Array(starCount).fill(0).map((_, i) => ) }

) : "" }
Stack of ScrewFast product boxes containing assorted hardware tools