"use client"; import React, { memo } from "react"; import Image from "next/image"; import RuleCard from "./RuleCard"; import Button from "./Button"; import { getAssetPath } from "../../lib/assetUtils"; const RuleStack = memo(({ className = "" }) => { const handleTemplateClick = (templateName) => { // Basic analytics tracking if (typeof window !== "undefined") { if (window.gtag) { window.gtag("event", "template_click", { template_name: templateName, }); } if (window.analytics) { window.analytics.track("Template Clicked", { templateName: templateName, }); } } console.log(`${templateName} template clicked`); }; return (
} backgroundColor="bg-[var(--color-surface-default-brand-lime)]" onClick={() => handleTemplateClick("Consensus clusters")} /> } backgroundColor="bg-[var(--color-surface-default-brand-rust)]" onClick={() => handleTemplateClick("Consensus")} /> } backgroundColor="bg-[var(--color-surface-default-brand-red)]" onClick={() => handleTemplateClick("Elected Board")} /> } backgroundColor="bg-[var(--color-surface-default-brand-teal)]" onClick={() => handleTemplateClick("Petition")} />
{/* See all templates button */}
); }); RuleStack.displayName = "RuleStack"; export default RuleStack;