"use client"; import Image from "next/image"; import { useTranslation } from "../../contexts/MessagesContext"; import RuleCard from "../RuleCard"; import Button from "../Button"; import { getAssetPath } from "../../../lib/assetUtils"; import type { RuleStackViewProps } from "./RuleStack.types"; export function RuleStackView({ className, onTemplateClick, }: RuleStackViewProps) { const t = useTranslation("ruleStack"); return (
} backgroundColor="bg-[var(--color-surface-default-brand-lime)]" onClick={() => onTemplateClick(t("cards.consensusClusters.title"))} /> } backgroundColor="bg-[var(--color-surface-default-brand-rust)]" onClick={() => onTemplateClick(t("cards.consensus.title"))} /> } backgroundColor="bg-[var(--color-surface-default-brand-red)]" onClick={() => onTemplateClick(t("cards.electedBoard.title"))} /> } backgroundColor="bg-[var(--color-surface-default-brand-teal)]" onClick={() => onTemplateClick(t("cards.petition.title"))} />
{/* See all templates button */}
); }