import Image from "next/image"; type Props = { users: { avatar: string | null; email: string | null; count: number; }[]; title: string; }; export const AnalyticsLeaderboard: React.FC = ({ users, title }) => (
{title}
{users.map((user) => (
{user && user.avatar && user.avatar !== "" ? (
{user.email
) : (
{(user.email ?? "No assignee").charAt(0)}
)} {user.email ?? "No assignee"}
{user.count}
))}
);