import { Link } from "react-router-dom"; import { Button } from "../ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "../ui/dialog"; type WelcomeLinkItem = { icon: string; label: string; description: string; to: string; }; const WELCOME_LINKS: WelcomeLinkItem[] = [ { icon: "fact_check", label: "处理待办", description: "先看今天需要审批或跟进的事项", to: "/workflow/tasks", }, { icon: "request_quote", label: "提交报销", description: "录入票据和报销说明,查看进度", to: "/reimbursements", }, { icon: "event_available", label: "请假记录", description: "日常请假走企业微信,OA 查看记录和状态", to: "/leave-requests", }, ]; export function WelcomeDialog({ open, onClose, }: { open: boolean; onClose: () => void; }) { return ( !nextOpen && onClose()}> 常用入口 你的账号已就绪。先从工作台处理待办,也可以直接进入常用业务。
{WELCOME_LINKS.map((item) => (
{item.icon}
{item.label}
{item.description}
))}
关闭后不再显示这个提示;所有功能都可以从左侧菜单进入。
); }