import { BulkActionBar } from '../BulkActionBar' import { FilterPills } from './FilterPills' import { NoteListHeader } from './NoteListHeader' import { EntityView, ListView } from './NoteListViews' import type { useNoteListModel } from './useNoteListModel' type NoteListLayoutProps = ReturnType export function NoteListLayout({ title, typeDocument, isEntityView, listSort, listDirection, customProperties, sidebarCollapsed, searchVisible, search, propertyPicker, handleSortChange, handleCreateNote, onOpenType, toggleSearch, setSearch, handleListKeyDown, noteListKeyboard, entitySelection, searchedGroups, collapsedGroups, sortPrefs, toggleGroup, renderItem, typeEntryMap, handleClickNote, isArchivedView, isChangesView, isInboxView, modifiedFilesError, searched, query, showFilterPills, noteListFilter, filterCounts, onNoteListFilterChange, multiSelect, handleBulkArchive, handleBulkDeletePermanently, handleBulkUnarchive, contextMenuNode, dialogNode, }: NoteListLayoutProps) { return (
{entitySelection ? ( ) : ( )}
{showFilterPills && ( )}
{multiSelect.isMultiSelecting && ( )} {contextMenuNode} {dialogNode}
) }