import { ButtonProps } from 'antd'; export type Item = { icon?: string | React.ReactNode; label?: string; action?: string; color?: 'warning' | 'success' | 'error' | 'default'; type?: 'a' | 'button'; alerted?: boolean; alertTitle?: string; alertContent?: string; confirmText?: string; cancelText?: string; render?: React.ReactNode; onClick?: (item: Item) => void | Promise; buttonProps?: Omit; show?: boolean; plain?: boolean; };