Renders a layer based on the type of highlight.
The properties for the layer.
The rendered layer component or null if no children are provided.
Renders a layer based on the type of highlight.