Pass through charger board

I need a board that will allow me to charge 4 18650 cells while powering a 5v load from an external source (wall power_or_ 5v USB). If the source is disconnected it needs to automatically switch to the battery.

Is there a single board or a combination that will do this?

ETA also needs to handle solar input. Sorry for the mistake.

Many thanks in advance

Joe