"use client"; import React, { memo, useMemo } from "react"; import ContentLockup from "./ContentLockup"; import MiniCard from "./MiniCard"; interface FeatureGridProps { title?: string; subtitle?: string; className?: string; } const FeatureGrid = memo( ({ title, subtitle, className = "" }) => { // Memoize the feature data to prevent unnecessary re-renders const features = useMemo( () => [ { backgroundColor: "bg-[var(--color-surface-default-brand-royal)]", labelLine1: "Decision-making", labelLine2: "support", panelContent: "/assets/Feature_Support.png", ariaLabel: "Decision-making support tools", href: "#decision-making", }, { backgroundColor: "bg-[#D1FFE2]", labelLine1: "Values alignment", labelLine2: "exercises", panelContent: "/assets/Feature_Exercises.png", ariaLabel: "Values alignment exercises", href: "#values-alignment", }, { backgroundColor: "bg-[#F4CAFF]", labelLine1: "Membership", labelLine2: "guidance", panelContent: "/assets/Feature_Guidance.png", ariaLabel: "Membership guidance resources", href: "#membership-guidance", }, { backgroundColor: "bg-[#CBDDFF]", labelLine1: "Conflict resolution", labelLine2: "tools", panelContent: "/assets/Feature_Tools.png", ariaLabel: "Conflict resolution tools", href: "#conflict-resolution", }, ], [], ); return (
{/* Feature Content Lockup */}
{/* MiniCard Grid */}
{features.map((feature, index) => ( ))}
); }, ); FeatureGrid.displayName = "FeatureGrid"; export default FeatureGrid;