Conditional Wrap
Source Conditional Wrap
Conditionally apply a wrapper function, with an optional alternative wrapper, while writing the child content once. Use it when a link, provider or layout wrapper is optional and duplicating the full child tree in a ternary would make maintenance harder.