"use client"; import React, { memo, useMemo } from "react"; import NumberedCard from "./NumberedCard"; import SectionHeader from "./SectionHeader"; import Button from "./Button"; interface Card { text: string; iconShape?: string; iconColor?: string; } interface NumberedCardsProps { title: string; subtitle: string; cards: Card[]; } const NumberedCards = memo(({ title, subtitle, cards }) => { // Memoize schema data to prevent unnecessary re-computations const schemaData = useMemo( () => ({ "@context": "https://schema.org", "@type": "HowTo", name: title, description: subtitle, step: cards.map((card, index) => ({ "@type": "HowToStep", position: index + 1, name: card.text, text: card.text, })), }), [title, subtitle, cards], ); return ( <>