import AuthUser from '@/modules/auth/auth-user'; import FAQDiscord from '@/pages/front/partials/FAQDiscord.jsx'; import Features from '@/pages/front/partials/Features.jsx'; import Footer from '@/pages/front/partials/Footer.jsx'; import Hero from '@/pages/front/partials/Hero.jsx'; import { useEffect, useState } from 'react'; const Home = () => { const [isClient, setIsClient] = useState(false); const [Editor, setEditor] = useState(null); useEffect(() => { setIsClient(true); // Dynamically import Editor only on client-side to avoid SSR issues with Konva import('@/modules/editor/editor.jsx').then((module) => { setEditor(() => module.default); }); }, []); return (
{isClient && Editor ? ( ) : (
Loading editor...
)}
); }; export default Home;