carnet panel

This commit is contained in:
alma 2025-04-20 18:14:13 +02:00
parent 64ad4d3fdc
commit 1af876097b

View File

@ -148,6 +148,21 @@ export default function CarnetPage() {
setLayoutMode("item-selection");
};
const handleNewNote = () => {
setSelectedNote({
id: '',
title: '',
content: '',
lastModified: new Date().toISOString(),
type: 'file',
mime: 'text/markdown',
etag: ''
});
if (isMobile) {
setShowNotes(false);
}
};
if (isLoading) {
return (
<div className="flex h-screen items-center justify-center">
@ -192,6 +207,7 @@ export default function CarnetPage() {
<NotesView
onNoteSelect={handleNoteSelect}
currentFolder={selectedFolder}
onNewNote={handleNewNote}
/>
</div>