import { Link } from 'react-router-dom'; import { Avatar } from 'mastodon/components/avatar'; import { NOTIFICATIONS_GROUP_MAX_AVATARS } from 'mastodon/models/notification_group'; import { useAppSelector } from 'mastodon/store'; const AvatarWrapper: React.FC<{ accountId: string }> = ({ accountId }) => { const account = useAppSelector((state) => state.accounts.get(accountId)); if (!account) return null; return ( ); }; export const AvatarGroup: React.FC<{ accountIds: string[] }> = ({ accountIds, }) => (
{accountIds.slice(0, NOTIFICATIONS_GROUP_MAX_AVATARS).map((accountId) => ( ))}
);