sokko-g/website/src/features/toolboxes/modules/MemosTicker.jsx
Shinuwa 808610dcf2
All checks were successful
Deploy Sokko G / deploy (push) Successful in 18s
Add planner-aware memos and unified tool configuration panels
2026-10-03 15:58:33 +02:00

18 lines
783 B
JavaScript

// Rôle : affiche la bande déroulante partagée pour les mémos et alertes de tâches.
import { Icon } from "../../../components/Icon.jsx";
export function MemosTicker({ items, label = "Mémos", className = "" }) {
if (!items?.length) return null;
return (
<div className={["memos-ticker", className].filter(Boolean).join(" ")} aria-label={label}>
<div className="memos-ticker-track">
{[...items, ...items].map((memo, index) => (
<span className={`memos-ticker-item ${memo.kind === "task-warning" ? "is-task-warning" : ""}`} key={`${memo.id}-${index}`} style={{ "--memo-color": memo.color }}>
{memo.kind === "task-warning" && <Icon name="warning" />}
{memo.text}
</span>
))}
</div>
</div>
);
}