mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-10 10:46:40 +00:00
25 lines
493 B
TypeScript
25 lines
493 B
TypeScript
import React, { FC } from "react";
|
|
import { User } from "../types/User";
|
|
|
|
interface AvatarListProps {
|
|
users: User[];
|
|
}
|
|
|
|
export const AvatarList: FC<AvatarListProps> = ({ users }) => {
|
|
return users === undefined ? (
|
|
<></>
|
|
) : (
|
|
<>
|
|
{users.map((user: User, i: number) => (
|
|
<img
|
|
key={i}
|
|
className="circle"
|
|
src={user.picture}
|
|
width="32vh"
|
|
height="32vh"
|
|
alt={user.fullName}
|
|
/>
|
|
))}
|
|
</>
|
|
);
|
|
};
|