'use client' import React from 'react' import { Layout, Flex, Row, Col } from 'antd' import Header from '@/components/layout/Header' import Navigation from '@/components/layout/Navigation' import { usePathname } from 'next/navigation' const AppLayout = ({ children }: { children: React.ReactNode }) => { const pathname = usePathname() const skipLayoutPrefixes = [ '/user/chat/', '/user/persona/create', '/user/knowledge/create' ]; const shouldSkipLayout = skipLayoutPrefixes.some(prefix => pathname.startsWith(prefix) ); if (shouldSkipLayout) { return <>{children}; } return (
{children}
); } export default AppLayout;