Quantum metasurfaces with atom arrays