3bb5a2fc by Adam Heath

WrapNode only activates when there is no special.

1 parent c2977574
1 --- 1 ---
2 import Node from './node.astro' 2 import Node from './node.astro'
3 3
4 const { props: { Wrapped, args, ...rest } } = Astro 4 const { props: { Wrapped, args, special, ...rest } } = Astro
5 --- 5 ---
6 {!special &&
6 <Wrapped {...args}> 7 <Wrapped {...args}>
7 <Node {...rest}/> 8 <Node {...rest}/>
8 </Wrapped> 9 </Wrapped>
10 }
......