children.astro
513 Bytes
---
import Match from './match.astro'
const { props: { parent, children, debug = false, replacers, slotHandler } } = Astro
//console.log('Children:render', { parent, children, replacers })
---
{
Array.isArray(children) ?
children.map((child, index) => <Match parent={parent} node={child} index={index} debug={debug} replacers={replacers} slotHandler={slotHandler}/>)
: !children ? ''
: <Match parent={parent} node={children} index={0} debug={debug} replacers={replacers} slotHandler={slotHandler}/>
}