WrapNode only activates when there is no special.
Showing
1 changed file
with
3 additions
and
1 deletions
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 | } | ... | ... |
-
Please register or sign in to post a comment