Social media giants agreed to pay an undisclosed sum to a Kentucky school district that blamed them for a mental health crisis among its students.

Social media giants Meta, Snap, TikTok and YouTube agreed Thursday to pay an undisclosed sum to a Kentucky school district that blamed them for a mental health crisis among its students.

The settlements avoid a California trial next month that had been expected to set the tone for hundreds of similar cases.

Meta, which owns Facebook and Instagram, was the last of the four companies to settle, according to court documents filed in federal court in Oakland, near San Francisco.

Snap, TikTok and Google, which owns YouTube, had already settled on May 15, according to documents reviewed by AFP.