Luckily this is an easy fix, thanks for asking it comes up a lot!
So components, by default, don’t share flow variables with the rest of your workflow. This means variables passed into or out of the component.
This was implemented to help keep your workflow clean of excess variables.
You can set variables to be passed into or out of your component in the configuration dialog of the Component input, and Component output nodes inside the component itself.
Just move the ones you want passed in, or the ones you want passed out into the green include box.
Configuring the input will set the incoming, and configuring the output will set the outgoing.
As a note, make sure your input box has executed before you’ll be able to see the variables in the configuration dialog.
Hope this helps!