
iphone 15 - Restarting constantly/Back camera & flashlight not working
I dropped my phone, and i just got the screen replaced. however, it wont stop restarting every 3 minutes and the back camera/flashlight isnt working. i need advice

I dropped my phone, and i just got the screen replaced. however, it wont stop restarting every 3 minutes and the back camera/flashlight isnt working. i need advice
I took this on my MacBook, so don’t mind the quality, but basically I dropped it. Now there are black spots (if I press on it, some parts come back), and a bright white line across it. It keeps restarting itself every five minutes. The screen isn’t frozen, and I can still charge it, but I can’t swipe or do anything. How much time do I have left? do i have to buy a new phone at this point?
Update: I just got my screen replaced, but the phone is still restarting every around 3 minutes. The back camera and flashlight also don’t work. Just to be clear, those issues were already happening before I got the screen fixed (when I dropped it), the screen was just the most obvious damage after I dropped it.