Centroid can be found for multiple sfc columns and any geometry type. For polygon and linestring data, centroid is calculated from vertices. Sfc columns must have same crs and should not be longitude/latitude.
ps_sfcs_centroid(x, sfc_names = ps_sfc_names(x), union = TRUE)
Sf object of centroid