"use client"; import { useTranslation } from "../../contexts/MessagesContext"; import type { RuleCardViewProps } from "./RuleCard.types"; export function RuleCardView({ title, description, icon, backgroundColor, className, onClick, onKeyDown, }: RuleCardViewProps) { const t = useTranslation("ruleCard"); const ariaLabel = t("ariaLabel").replace("{title}", title); return (
{/* Header Container */}
{/* Icon Container */} {icon && (
{icon}
)} {/* Title Container */} {title && (

{title}

)}
{description && (

{description}

)}
); }