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