import { Icon, IconName } from "@blueprintjs/core" import route, { useRoute } from "@render/route" import React, { Fragment } from "react" import { NavLink, useLocation } from "react-router-dom" import style from "./index.module.scss" import cs from "classnames" function ActionItem(){ } export default function Layout(props: any) { let isLayout = true let [curRoute, routeList] = useRoute() if (curRoute.layout != undefined) { isLayout = !!curRoute.layout } interface TList { icon: IconName path: string title: string text: string } const list: TList[] = [ { path: "/home", icon: "time", title: "首页", text: "首页", }, { path: "/about", icon: "mugshot", title: "添加闹钟", text: "关于", }, ] return (