default <T> ComponentRenderer<T> mapContext(final Function<T, C> transformer) {
    return (component, ctx) -> this.render(component, transformer.apply(ctx));
  }
Return a {@link ComponentRenderer} that takes a different context type.

@param transformer context type transformer
@param <T> transformation function
@return mapping renderer
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/renderer/ComponentRenderer.java