import React from 'react'; interface PersonCardProps { name: string; subName?: string; profilePath?: string; canExpand?: boolean; } const PersonCard: React.FC = ({ name, subName, profilePath, canExpand = false, }) => { return (
{profilePath && (
)} {!profilePath && ( )}
{name}
{subName && (
{subName}
)}
); }; export default PersonCard;