({ user, href }: Props)
| 6 | href?: string |
| 7 | } |
| 8 | export const UserCard = ({ user, href }: Props) => { |
| 9 | return ( |
| 10 | <a |
| 11 | className="Box d-flex height-full color-shadow-medium hover-shadow-large no-underline color-fg-default p-4" |
| 12 | href={href || `https://github.com/${user.username}`} |
| 13 | > |
| 14 | <div className="flex-shrink-0 mr-3"> |
| 15 | <img |
| 16 | src={`https://github.com/${user.username}.png`} |
| 17 | alt={user.username} |
| 18 | className="avatar avatar-8 circle" |
| 19 | /> |
| 20 | </div> |
| 21 | <div className="flex-auto"> |
| 22 | <h4>{user.username}</h4> |
| 23 | <p className="mt-1 color-fg-muted">{user.description}</p> |
| 24 | </div> |
| 25 | </a> |
| 26 | ) |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected