'use client' import React from 'react' import dynamic from 'next/dynamic' import { useGlobalPublicStore } from '@/context/global-public-context' // Avoid rendering the logo and theme selector on the server const DifyLogo = dynamic(() => import('@/app/components/base/logo/dify-logo'), { ssr: false, loading: () =>
, }) const ThemeSelector = dynamic(() => import('@/app/components/base/theme-selector'), { ssr: false, loading: () => , }) const Header = () => { const systemFeatures = useGlobalPublicStore(s => s.systemFeatures) return (