import { useEffect, useState } from 'react'; import FAQDiscord from './partials/FAQDiscord.jsx'; import Features from './partials/Features.jsx'; import Footer from './partials/Footer.jsx'; import Hero from './partials/Hero.jsx'; const Home = ({ faqData }) => { 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 if (typeof window !== 'undefined') { import('@/modules/editor/editor.jsx').then((module) => { setEditor(() => module.default); }); } }, []); return (
{isClient && Editor ? ( ) : (
Loading editor...
)}
); }; export default Home;