"use client"; import React, { useState } from 'react'; import { Search, BookOpen, Tag, Trash2, Star, Archive, X, Folder } from 'lucide-react'; import { PaneLayout } from '@/app/carnet/page'; interface NavigationProps { onLayoutChange?: (layout: PaneLayout) => void; nextcloudFolders?: string[]; } export const Navigation: React.FC = ({ onLayoutChange, nextcloudFolders = [] }) => { const [searchQuery, setSearchQuery] = useState(''); return (
{/* Search */}
setSearchQuery(e.target.value)} placeholder="Recherché..." className="w-full pl-9 pr-4 py-2 bg-white border border-carnet-border rounded-md text-sm text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none focus:ring-1 focus:ring-primary" /> {searchQuery && ( )}
{/* Navigation Items */}
onLayoutChange?.(PaneLayout.ItemSelection)} > Page 54
onLayoutChange?.(PaneLayout.TagSelection)} > Important
Archivé 18
onLayoutChange?.(PaneLayout.TableView)} > Corbeille
{/* Favorites Section */}

Vues

Journal 2
Santé 1
Daily Notes 7
{/* Nextcloud Folders */} {nextcloudFolders.length > 0 && (

Dossiers Nextcloud

{nextcloudFolders.map((folder) => (
{folder}
))}
)}
); };