--- // Import the necessary components import StatsBig from "../ui/blocks/StatsBig.astro"; import StatsSmall from "../ui/blocks/StatsSmall.astro"; // Get values from Astro's builtin props const { title, subTitle } = Astro.props; // TypeScript interface for the properties interface Props { title: string; subTitle: string; } // TypeScript type for the statistics type Stat = { stat: string; description: string; }; // An array of statistics, each being an object that conforms to the above `Stat` type const stats: Stat[] = [ { stat: "99.8%", description: "project completion rate", }, { stat: "5,000+", description: "successful installations", }, { stat: "85%", description: "client growth year-over-year", }, ]; ---

{title}

{subTitle}

{ stats.map((stat) => ( )) }