import React from 'react'; import Image from 'next/image'; import Reveal from '@/components/Reveal'; import { Badge, Heading } from '@/components/ui'; import TrackedLink from '@/components/analytics/TrackedLink'; import { getButtonClasses, ButtonOverlay } from '@/components/ui/Button'; export interface TeamProfileProps { name: string; role: string; image?: any; quote?: string; description?: string; linkedinUrl?: string; linkedinLabel?: string; colorScheme?: 'light' | 'dark'; layout?: 'imageLeft' | 'imageRight'; } export const TeamProfile: React.FC = (props) => { const { name, role, image, quote, description, linkedinUrl, linkedinLabel, colorScheme, layout, } = props; const imgSrc = image?.sizes?.card?.url || image?.url; const isDark = colorScheme === 'dark'; const isImageRight = layout === 'imageRight'; return (
{role} {name} {quote && (

{quote}

)} {description && (

{description}

)} {linkedinUrl && ( {linkedinLabel || 'LinkedIn'} )}
{imgSrc && ( <> {name}
)}
); };