Applications of Nijenhuis geometry IV: Multicomponent KdV and Camassa–Holm equations