Thank the person for their honesty. It takes courage to let someone know that they're only interested in friendship, as some people might just ghost or leave you hanging. Show the person that you appreciate that they took the time to be real with you and thank them for it.