import type { ComponentType, ReactNode } from 'react'; import type { IconProps } from '@unif/react-native-icons'; import type { StyleProp, TextProps, ViewStyle } from 'react-native'; export type EmptyProps = { /** 主标题(如「暂无数据」) */ title: string; /** 副描述(建议下一步操作) */ desc?: string; /** illust 圆盘内的图标,默认 `'spark'`(通用空态)。 * null 隐藏装饰图标。相机域可传 `'camera-off'` / `'permission-denied'` / `'error-alert'` 等强语义 icon。 */ icon?: ComponentType | null; /** 可选操作区域;按钮及回调由调用方提供,组件只负责居中布局。 */ action?: ReactNode; /** 标题的原生无障碍角色,例如错误提示使用 alert。 */ accessibilityRole?: TextProps['accessibilityRole']; /** 容器附加样式(margin / position 等布局微调)。 */ style?: StyleProp; /** E2E / 测试定位 */ testID?: string; };