import React from 'react'; import { Location } from 'react-router-dom'; import { BookOpenIcon, PlusCircleIcon } from '@heroicons/react/24/outline'; import { Note } from '../../entities/Note'; import { useTranslation } from 'react-i18next'; interface SidebarNotesProps { handleNavClick: (path: string, title: string, icon: JSX.Element) => void; location: Location; isDarkMode: boolean; openNoteModal: (note: Note | null) => void; notes: Note[]; } const SidebarNotes: React.FC = ({ handleNavClick, location, openNoteModal, }) => { const { t } = useTranslation(); const isActiveNote = (path: string) => { return location.pathname === path ? 'bg-gray-200 dark:bg-gray-700 text-gray-900 dark:text-white' : 'text-gray-700 dark:text-gray-300'; }; return ( <> ); }; export default SidebarNotes;