With the fate of her organs decided, Thaiya Spruill-Smith, a Brooklyn girl who was declared brain-dead after being violently shaken, was taken off life support and died on Wednesday morning.

The 2-year-old girl had been on life support while her parents tried to reach a consensus on whether her organs should be donated.

Thaiya’s parents, Terrell Smith and Teoka Spruill, were estranged, and had long fought over custody of her.

Image Thaiya Spruill-Smith

Ms. Spruill wanted to donate Thaiya’s organs, while Mr. Smith did not.

The lack of consensus intensified the custody battle, as Mr. Smith, who filed the custody petition, believed that whoever had custody of Thaiya could decide if her organs should be donated.