A number of people have created magsafe adapters for USB-C but it's never really taken off.
Had a quick google and yay - https://www.amazon.co.uk/Magnetic-Compatible-MacBook-Reversi... - though that was one of the first links that jumped out, nice picture of what it is, but if your getting one, do look around more as probably better or cheaper options.