A cut and hanging dew claw requires immediate veterinary attention.
It is painful and risks infection and further damage. Stop bleeding with gentle pressure, protect the claw, and see a veterinarian for cleaning, pain relief, and possible surgery.
Do not try to treat this yourself.