A magnetic breakaway USB-C connector consists of two parts: the first part is the USB-C port that plugs into the device you want to protect -- be that a laptop, smartphone, charger, power bank, or ...
You don't need to throw away an old laptop. By installing ChromeOS Flex on it, you can turn it into a Chromebook, instead.