Low-dimension confinement effect in COF-based hetero-photocatalyst for energy-conversion application