children.astro 575 Bytes
---
import Render, { slotPassThrough } from './render.astro'

const { props: { debug, parent, children, replacers, slotHandler } } = Astro

const slotCallback = slotPassThrough(Astro)

//console.log('Children:render', { parent, children, replacers })
---
{
  Array.isArray(children) ?
    children.map((child, index) => <Render debug={debug} parent={parent} node={child} index={index} replacers={replacers} slotHandler={slotHandler}/>)
  : !children ? ''
  : <Render debug={debug} parent={parent} node={children} index={0} replacers={replacers} slotHandler={slotHandler}/>
}