'use client' import dynamic from 'next/dynamic' import { Note } from '@/lib/types' import { NotesTabsView } from '@/components/notes-tabs-view' const MasonryGridLazy = dynamic( () => import('@/components/masonry-grid').then((m) => m.MasonryGrid), { ssr: false, loading: () => (
), } ) export type NotesViewMode = 'masonry' | 'tabs' interface NotesMainSectionProps { notes: Note[] viewMode: NotesViewMode onEdit?: (note: Note, readOnly?: boolean) => void currentNotebookId?: string | null } export function NotesMainSection({ notes, viewMode, onEdit, currentNotebookId }: NotesMainSectionProps) { if (viewMode === 'tabs') { return (