Do I have a right to be mad at my friend?

So i'm 16 and so is my friend, her name is Sydney. I have no classes with her but we have a lot of the same teachers. Today in culinary class, which is my third period, I noticed that an IPhone charger was plugged into the wall. Someone tried to steal it so I put it in my backpack to keep it safe, and give it to the teacher after class, assuming it had belonged to someone from second period. I have a samsung so I didn't even need it or anything. So at the end of class we had free time so I started studying for my test in fourth period, and I left without giving it to the teacher, on accident. I later when into my backpack at lunch and saw it, Sydney saw it too and said she needed cause she lost her charger and she has an IPhone. She took it and told her that it was wrong to do that. She said 'I don't care" and we moved on but I want to ask her about it because it makes me mad. I promise she usually isn't like this.
What should I do?

Yes, you have a right to be disappointed in your friend, and you have a right to be mad at her, too. Your friend is a thief and has made you complicit. What should you do? Talk to your friend and ask her to turn in the charger. Either way, her actions are jeopardizing your friendship. Perhaps you need to make new friends?

Just leave her be and let her take it. Not your issue you were tryna do the right thing