import React, { useState } from 'react'; import { Button, Card, Flex, Typography } from 'antd'; import { CloseOutlined, RightOutlined, StepForwardOutlined } from '@ant-design/icons'; export interface NextStepHintProps { /** 提示标题,如「下一步:分班」 */ title: string; /** 补充说明 */ description?: string; /** 主操作按钮(跳转到下一步) */ action?: { label: string; onClick: () => void }; /** 是否可关闭,默认 true */ closable?: boolean; /** 关闭回调 */ onClose?: () => void; } /** * 「下一步」引导卡片:在操作成功后或空状态下提示用户业务闭环的下一步, * 让用户始终知道接下来该做什么。 */ export const NextStepHint: React.FC = ({ title, description, action, closable = true, onClose, }) => { const [dismissed, setDismissed] = useState(false); if (dismissed) return null; return ( {title} {description ? {description} : null} {action ? ( ) : null} {closable ? (