Rosario Dawson goofing around as Ahsoka Tano is buckets of fun

As someone only tangentially interested in Star Wars, this is still a mystery to me: is the thing on Ahsoka’s head hair or a hat?