import{d as e,l as t,s as n}from"./hooks.module-BrXTvcfS.js";import{H as r}from"./content_renderer-DOj8g78V.js";import{t as i}from"./jsxRuntime.module-Cao1NCKs.js";import{n as a}from"./NoteLink-DzIkXtVf.js";e();function o({noteIds:e,branchIds:a,style:o}){let[s,c]=n([]);return t(()=>{let t;t=e||(a?r.getBranches(a).map(e=>e.noteId):[]),r.getNotes(t).then(e=>c(e))},[e,a]),s&&i(`ul`,{style:o,children:s.map(e=>i(`li`,{children:e.title},e.noteId))})}function s({noteIds:e}){let[o,s]=n([]);return t(()=>{r.getNotes(e).then(e=>s(e))},[e]),o&&i(`ul`,{children:o.map(e=>i(`li`,{children:i(a,{notePath:e.noteId,showNotePath:!0,showNoteIcon:!0,noPreview:!0})},e.noteId))})}export{s as n,o as t};