import { peopleModal // 插入詳細內容Modal(Promise),包含開啟及關閉功能 } from '/data/www/aia-official-en-main/web/src/js/components/modal.js' type PeopleExecutiveCardProps = { customClass?: string | null; portrait: string; name: string; title: string; text?: string | null; positions: string[]; readMoreButton?: boolean; // 是否顯示「Read more」按鈕 }; export default function PeopleExecutiveCard({ customClass = "", portrait = "", name = "", title = "", text = "", positions = [ ], readMoreButton = false, }: PeopleExecutiveCardProps) { return (

{name}

{title}

{!readMoreButton && text && (
{text}
)}
Current Positions
    {positions.map((position, index) => (
  • {position}
  • ))}
{readMoreButton && ( )}
); }