import{d as e,m as t,s as n,y as r}from"./hooks.module-5xe-uC6c.js";import{s as i}from"./options-CDt8ZGCW.js";import{t as a}from"./jsxRuntime.module--xb8gfv5.js";import{U as o,k as s}from"./hooks-CSTgmcXO.js";import{t as c}from"./CollectionProperties-DU_3GbBJ.js";import{t as l}from"./NoItems-CjX4hzvd.js";e();var u=[`list`,`grid`,`presentation`];function d({note:e}){let[d]=s(e,`viewType`,`grid`),[f,p]=n(!1);function m(){p(!e.hasChildren()&&u.includes(d))}return t(m,[e,d]),o(`entitiesReloaded`,({loadResults:t})=>{t.getBranchRows().some(t=>t.parentNoteId===e.noteId)&&m()}),a(r,{children:f&&a(r,{children:[a(c,{note:e}),a(l,{icon:`bx bx-collection`,text:i(`book.no_children_help`)})]})})}export{d as default};