import Icon, { DesktopOutlined } from '@ant-design/icons'
import { AdminRouterItem } from "../../router";
import WeCom from "./weCom/index";
import WeGZH from "./weGZH/index";
import WeComIcon from "@src/assets/images/publishContent/wxCom.svg?react";
import WeGZHIcon from "@src/assets/images/publishContent/wxGzh.svg?react";
import { Outlet } from "react-router-dom";

const demoRoutes: AdminRouterItem[] = [
  {
		path: 'publishContent',
		element: <Outlet />,
		meta: {
			label: "发布内容管理",
			title: "发布内容管理",
			key: "/publishContent",
			icon: <DesktopOutlined />,
		},
		children: [
			{
				path: 'wegzh',
				element: <WeGZH />,
				meta: {
					label: "公众号",
					title: "公众号",
					key: "/publishContent/wegzh",
					icon: <Icon component={WeGZHIcon} className="!text-[20px]" />,
				}
			},
			{
				path: 'wecom',
				element: <WeCom />,
				meta: {
					label: "企微",
					title: "企微",
					key: "/publishContent/wecom",
					icon: <Icon component={WeComIcon} className="!text-[20px]"/>,
				}
			},
		]
	}
]

export default demoRoutes
