import type { IconType } from 'react-icons'; import { FaUserGraduate, FaUserShield, FaLaptopCode, FaMicrophoneLines, FaEnvelopeOpenText, FaWrench, FaRegFileLines, FaSpellCheck, FaChartPie, FaGlobe, FaBookOpenReader, FaPenRuler, } from 'react-icons/fa6'; type ServiceItem = { icon: IconType; label: string; href: string; }; const services: ServiceItem[] = [ { icon: FaUserGraduate, label: '警队自考', href: '/study' }, { icon: FaUserShield, label: '警队教育', href: '/scholarship' }, { icon: FaLaptopCode, label: '常用软件', href: '/software' }, { icon: FaMicrophoneLines, label: '智能语音', href: '/voice' }, { icon: FaEnvelopeOpenText, label: '蓝天邮局', href: '/mail' }, { icon: FaWrench, label: '策划工具', href: '/plan' }, { icon: FaRegFileLines, label: '办公模板', href: '/office' }, { icon: FaSpellCheck, label: '智能校对', href: '/ai-check' }, { icon: FaChartPie, label: '警情调研', href: '/survey' }, { icon: FaGlobe, label: '上网助手', href: '/net' }, { icon: FaBookOpenReader, label: '考试平台', href: '/exam' }, { icon: FaPenRuler, label: '学习平台', href: '/study' }, ]; const columns = Array.from({ length: 3 }, (_, colIndex) => services.slice(colIndex * 4, colIndex * 4 + 4) ); export default function Integrated() { return (

综合服务

{columns.map((group, colIdx) => (
{group.map((service) => (
{service.label}
))}
))}
); }