carnet panel
This commit is contained in:
parent
c64bacfee6
commit
64ad4d3fdc
@ -1,12 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import { Search, BookOpen, Tag, Trash2, Star, Archive, X, Folder, FileText, Calendar, Heart, Users, LucideIcon, Plus } from 'lucide-react';
|
||||
import { Search, BookOpen, Tag, Trash2, Star, Archive, X, Folder, FileText, Calendar, Heart, Users, LucideIcon } from 'lucide-react';
|
||||
|
||||
interface NavigationProps {
|
||||
nextcloudFolders: string[];
|
||||
onFolderSelect: (folder: string) => void;
|
||||
onNewNote: () => void;
|
||||
}
|
||||
|
||||
type FolderType = 'Notes' | 'Diary' | 'Health' | 'Contacts';
|
||||
@ -24,7 +23,7 @@ const FOLDER_CONFIG: Record<FolderType, FolderConfig> = {
|
||||
'Contacts': { icon: Users, order: 4 }
|
||||
};
|
||||
|
||||
export default function Navigation({ nextcloudFolders, onFolderSelect, onNewNote }: NavigationProps) {
|
||||
export default function Navigation({ nextcloudFolders, onFolderSelect }: NavigationProps) {
|
||||
const [searchQuery, setSearchQuery] = useState('');
|
||||
|
||||
const getFolderIcon = (folder: string) => {
|
||||
@ -73,17 +72,6 @@ export default function Navigation({ nextcloudFolders, onFolderSelect, onNewNote
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* New Note Button */}
|
||||
<div className="px-4 pb-4">
|
||||
<button
|
||||
onClick={onNewNote}
|
||||
className="w-full flex items-center justify-center space-x-2 px-3 py-2 bg-primary text-white rounded-md hover:bg-primary-dark transition-colors"
|
||||
>
|
||||
<Plus className="h-4 w-4" />
|
||||
<span>Nouvelle note</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Folders */}
|
||||
<div className="flex-1 overflow-y-auto p-4">
|
||||
<div className="space-y-1">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user