How do I fix BCE0019

Ok so I am working on making cheats for my game, I`m just making a way of taking the GUI on and off and making the mouse lock and show up. But i have a problem, it says this "Assets/CheatController.js(5,28): BCE0019: ‘enabled’ is not a member of ‘UnityEngine.Component’.
".

To help you understand what im doing the script is here…

#pragma strict

function Start() {
    
    GetComponent("Cheats").enabled = false;
	
}

function Update() {

    if(Input.GetKeyDown(KeyCode.RightShift)){
        
        GetComponent("Cheats").enabled = true;
    }
    if(GetComponent("Cheats").enabled == true){
    
        Screen.showCursor = true;
        Screen.lockCursor = false;
    }
}

If you could help id be very greatfull and I`ll give my game for free once its completed.

Thanks in advance!

Remove the quotes around ‘Cheats’:

 GetComponent(Cheats).enabled = true;

if (GetComponent(Cheats).enabled) {

When using a string, GetCompent() returns an object of type ‘Component’, but this class does not have an ‘enabled’ flag.