import React from 'react'; import { Note } from '../../entities/Note'; import NoteCard from '../Shared/NoteCard'; import { TFunction } from 'i18next'; import { PlusCircleIcon } from '@heroicons/react/24/outline'; import { Project } from '../../entities/Project'; interface ProjectNotesSectionProps { project: Project; notes: Note[]; t: TFunction; onCreateNote: () => void; onEditNote: (note: Note) => Promise; onDeleteNote: (note: Note) => void; } const ProjectNotesSection: React.FC = ({ project, notes, t, onCreateNote, onEditNote, onDeleteNote, }) => { return (
{notes.length > 0 ? (
{notes.map((note) => ( ))}
) : (

{t('project.noNotes', 'No notes for this project.')}

)}
); }; export default ProjectNotesSection;