Microwire-based superconducting nanowire single-photon detector (SNSPD) as a target and sensor for dark matter