Toggle components in App Structure

I would like to have a toggle similar to the one in server actions used to disable steps. In this case, what the button in the App structure should do is to comment in or out the code.

Many thanks!