import React from "react"; import styles from "./Facepile.module.css"; import classNames from "classnames"; import { Avatar } from "./Avatar"; import { getAvatarUrl } from "./matrix-utils"; const overlapMap = { xs: 2, sm: 4, md: 8, }; const sizeMap = { xs: 24, sm: 32, md: 36, }; export function Facepile({ className, client, participants, max, size, ...rest }) { const _size = sizeMap[size]; const _overlap = overlapMap[size]; return (