import React from 'react';
import { Avatar, Skeleton, Tooltip } from 'antd';
const AvatarPlaceholder: React.FC<{ num?: number }> = ({ num = 3 }) => (
{Array.from({ length: num }).map((_, i) => (
))}
);
interface ContributorAvatarProps {
username?: string;
url?: string;
loading?: boolean;
}
const ContributorAvatar: React.FC = ({ username, url, loading }) => {
if (loading) {
return ;
}
if (username?.includes('github-actions')) {
return null;
}
return (
{username}
);
};
export default ContributorAvatar;