First you don’t need to use GetComponent to access the current instance of TeleportLocation. Your class IS a TeleportLocation so by writing
enabled = false;
You will disable this script.
Your actual problem is that it seems you don’t have this “ButtonContent” class. Are you sure you have a script that is called ButtonContent? And also make sure it’s attached to the same object or GetComponent will fail.
Anyway, the error can’t be misinterpreted: the compiler can’t find a class that is called ButtonContent.