Can you accept that? or is it a concept that weirds you out? If you don't know how to feel, you can look up transphobia to see what makes people hesitant to accept it. And look up trans in general to understand what it means.
If you can accept your friend for who they are, then tell them you appreciate that they felt comfortable and safe to tell ......
reply