import React from "react"; import styles from "./Facepile.module.css"; import ColorHash from "color-hash"; import classNames from "classnames"; const colorHash = new ColorHash({ lightness: 0.3 }); export function Facepile({ participants }) { return (
member.name).join(", ")} > {participants.slice(0, 3).map((member) => (
{member.name.slice(0, 1).toUpperCase()}
))} {participants.length > 3 && (
{`+${participants.length - 3}`}
)}
); }