module.exports = async (noteId) => { const csvContent = await api.runOnBackend(async (noteId) => { try { console.log(noteId) const note = await api.getNote(noteId); if (note) { console.log(note); return await note.getContent(); } else { console.log('Note not found:', noteId); return ''; } } catch (error) { console.error('Failed to fetch note content:', error); return ''; } }, [noteId]); return csvContent; }