import { cn } from "@lume/utils"; import { useNoteContext } from "./provider"; import { User } from "../user"; export function NoteActivity({ className }: { className?: string }) { const event = useNoteContext(); const mentions = event.tags .filter((tag) => tag[0] === "p") .map((tag) => tag[1]); return (
To:
{mentions.splice(0, 4).map((mention) => ( ))} {mentions.length > 4 ? "..." : ""}
); }