import{a as e,l as t}from"./preact.module-CNakwbc9.js";import{d as n,l as r,s as i}from"./hooks.module-BrXTvcfS.js";import{a}from"./i18n-BaLR3UdQ.js";import{t as o}from"./jsxRuntime.module-Cao1NCKs.js";import{F as s,J as c}from"./hooks-ClTXKdUl.js";import{t as l}from"./CollectionProperties-WfFZbFtJ.js";import{t as u}from"./NoItems-ZA3b1X1n.js";n(),t();var d=[`list`,`grid`,`presentation`];function f({note:t}){let[n]=s(t,`viewType`,`grid`),[f,p]=i(!1);function m(){p(!t.hasChildren()&&d.includes(n))}return r(m,[t,n]),c(`entitiesReloaded`,({loadResults:e})=>{e.getBranchRows().some(e=>e.parentNoteId===t.noteId)&&m()}),o(e,{children:f&&o(e,{children:[o(l,{note:t}),o(u,{icon:`bx bx-collection`,text:a(`book.no_children_help`)})]})})}export{f as default};