import { NoteData , NoteRepository , UseCase } from '@/use-cases/ports' ; export class LoadNotes implements UseCase { private readonly noteRepository : NoteRepository ; constructor ( noteRepository ) { this . noteRepository = noteRepository ; } public async perform ( requestUserId ) { return await this . noteRepository . findAllNotesFrom ( requestUserId ) ; } }