Why is my thumb swollen?

A hangnail? There’s no piece hanging or anything. Swollen and painful how do I get rid of it?