'use client'; import { PropsWithChildren, memo } from 'react'; import { Center, Flexbox } from 'react-layout-kit'; import AppLayoutDesktop from '@/layout/AppLayout.desktop'; import { SidebarTabKey } from '@/store/global/initialState'; import { LeftOutlined } from "@ant-design/icons" import { Button } from "antd" import KnowledgeTabs from './tabs'; import { useRouter } from 'next/navigation'; interface LayoutProps extends PropsWithChildren { params: Record; } export default memo(({ children, params }) => { // console.log(params); const router = useRouter(); function goBack(){ router.push('/knowledge') } return (
{/*
{params.id}
*/}
{children}
); });