I’d pull out soaked drywall fast, then get big fans and dehumidifiers on the framing until it’s fully dry. Treat any dark or soft spots with a mold...