--- // 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, 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; starCount?: number; rating?: string; reviews?: string; } ---

{subTitle}

{ withReview ? (
7k+
{ Array(starCount) .fill(0) .map((_, i) => ) }

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