This question has options. Does the word "snap" have the same definition in the next two sentences?

Snap your fingers.

When her baby died, she snapped.

Select from the following. (A). different meanings; (B). the same meaning;
(A).