import { Button } from '@/components/ui/button'; import { cn } from '@/lib/utils'; import { Pencil } from 'lucide-react'; import { lazy, ReactNode, Suspense } from 'react'; const SectionEditor = lazy(() => import('@/components/section-editor')); interface SectionProps extends React.HTMLAttributes { children: ReactNode; customize: boolean; pageSection: PageSection | undefined; contentClass?: string; containerClass?: string; containerStyle?: React.CSSProperties; contentStyle?: React.CSSProperties; } const Section = ({ containerClass, contentClass, children, pageSection, customize, containerStyle, contentStyle, ...props }: SectionProps) => { return (
{customize && pageSection && ( } /> )} {/* Content */} {children}
); }; export default Section;