// 'use client'; // Add this to enable client-side rendering // import ContentAnimation from '@/components/layouts/content-animation'; // import Footer from '@/components/layouts/footer'; // import Header from '@/components/layouts/header'; // import MainContainer from '@/components/layouts/main-container'; // import Overlay from '@/components/layouts/overlay'; // import ScrollToTop from '@/components/layouts/scroll-to-top'; // import Setting from '@/components/layouts/setting'; // import Sidebar from '@/components/layouts/sidebar'; // import Portals from '@/components/portals'; // export default function DefaultLayout({ children }: { children: React.ReactNode }) { // return ( // <> // {/* BEGIN MAIN CONTAINER */} //
// // // {/* BEGIN APP SETTING LAUNCHER */} // // {/* END APP SETTING LAUNCHER */} // // {/* BEGIN SIDEBAR */} // // {/* END SIDEBAR */} //
// {/* BEGIN TOP NAVBAR */} //
// {/* END TOP NAVBAR */} // {/* BEGIN CONTENT AREA */} // {children} // {/* END CONTENT AREA */} // {/* BEGIN FOOTER */} //
//
//
// // ); // } 'use client'; import React from 'react'; import ContentAnimation from '@/components/layouts/content-animation'; import Footer from '@/components/layouts/footer'; import Header from '@/components/layouts/header'; import MainContainer from '@/components/layouts/main-container'; import Overlay from '@/components/layouts/overlay'; import ScrollToTop from '@/components/layouts/scroll-to-top'; import Setting from '@/components/layouts/setting'; import Sidebar from '@/components/layouts/sidebar'; import Portals from '@/components/portals'; import { SubscriptionProvider } from '@/components/billing/subscription-context'; export default function DefaultLayout({ children }: { children: React.ReactNode }) { return ( <> {/* BEGIN MAIN CONTAINER */}
{/* BEGIN APP SETTING LAUNCHER */} {/* */} {/* END APP SETTING LAUNCHER */} {/* BEGIN SIDEBAR */} {/* END SIDEBAR */}
{/* BEGIN TOP NAVBAR */}
{/* END TOP NAVBAR */} {/* BEGIN CONTENT AREA (wrapped with SubscriptionProvider) */} {children} {/* END CONTENT AREA */} {/* BEGIN FOOTER */}
); }