import { Avatar, AvatarGroup, SxProps } from '@mui/material';
import React from 'react';
/**
*
* for multiple avatars, will render all in a folder
* takes into account size as well
*/
export default function NirvanaAvatar({
avatars,
size = 'default',
}: {
size?: 'large' | 'small' | 'default';
avatars: { src: string; alt: string }[];
}) {
const sx: SxProps = size === 'small' ? { height: 25, width: 25 } : {};
if (avatars?.length === 1) {
return ;
}
return (
{avatars.map((avatar, index) => (
))}
);
}