import Text from '@views/components/common/Text/Text'; import React from 'react'; interface ContributorCardProps { name: string; githubUsername: string; roles: string[]; stats?: { commits: number; linesAdded: number; linesDeleted: number; mergedPRs?: number; }; showStats: boolean; includeMergedPRs: boolean; } /** * GitHub contributor card component */ export const ContributorCard: React.FC = ({ name, githubUsername, roles, stats, showStats, includeMergedPRs, }) => (
window.open(`https://github.com/${githubUsername}`, '_blank')} > {name} {roles.map(role => (

{role}

))} {showStats && stats && (

GitHub Stats (UTRP repo):

{includeMergedPRs && stats.mergedPRs !== undefined && (

Merged PRs: {stats.mergedPRs}

)}

Commits: {stats.commits}

{stats.linesAdded}++

{stats.linesDeleted}--

)}
);