import { StaffMember, Publication } from './types' export function StaffDetailPanel({ selectedStaff, publications, }: { selectedStaff: StaffMember | null publications: Publication[] }) { if (!selectedStaff) { return (
Wahlen Sie eine Person aus der Liste
) } return (
{/* Header */}
{selectedStaff.photo_url ? ( {selectedStaff.full_name ) : (
{(selectedStaff.first_name?.[0] || '') + (selectedStaff.last_name?.[0] || '')}
)}

{selectedStaff.title && `${selectedStaff.title} `} {selectedStaff.full_name || `${selectedStaff.first_name || ''} ${selectedStaff.last_name}`}

{selectedStaff.position}

{selectedStaff.university_name}

{/* Contact */}
{selectedStaff.email && (
{selectedStaff.email}
)} {selectedStaff.profile_url && (
Profil
)} {selectedStaff.orcid && (
ID ORCID: {selectedStaff.orcid}
)}
{/* Research Interests */} {selectedStaff.research_interests && selectedStaff.research_interests.length > 0 && (

Forschungsgebiete

{selectedStaff.research_interests.map((interest, i) => ( {interest} ))}
)} {/* Publications */}

Publikationen ({publications.length})

{publications.length > 0 ? (
{publications.map((pub) => (

{pub.title}

{pub.year && {pub.year}} {pub.venue && | {pub.venue}} {pub.citation_count > 0 && ( {pub.citation_count} Zitierungen )}
{pub.doi && ( DOI )}
))}
) : (

Keine Publikationen gefunden

)}
{/* Actions */}
) }