import { Image } from 'expo-image'; import type { ComponentProps } from 'react'; import React from 'react'; import { Pressable, Text, View } from 'react-native'; import { StatusBadge } from './status-badge'; interface ActivityCardProps { avatarUri?: string; name: string; loanType: string; time: string; description: string; badgeText: string; badgeVariant?: ComponentProps['variant']; onPress?: () => void; } /** * 动态卡片 — 展示客户最近操作动态 * 采用浅底色和细边框,避免阴影带来的悬浮感。 */ export function ActivityCard({ avatarUri, name, loanType, time, description, badgeText, badgeVariant = 'secondary', onPress, }: ActivityCardProps) { return ( {/* 头像 */} {avatarUri ? ( ) : ( {name[0]} )} {/* 正文 */} {name} - {loanType} {time} {description} {/* 状态 */} ); }