import React from "react"; import { TabBar } from "antd-mobile"; import styles from "./index.module.scss"; import { useNavigate, useLocation } from "react-router-dom"; export const TabBarFooter: React.FC = () => { const navigate = useNavigate(); const location = useLocation(); const { pathname } = location; const tabs = [ { key: "/", title: "首页", icon: (active: boolean) => active ? ( ) : ( ), }, { key: "/study", title: "学习", icon: (active: boolean) => active ? ( ) : ( ), }, { key: "/member", title: "我的", icon: (active: boolean) => active ? ( ) : ( ), }, ]; return (