I think you're struggling with this:

Right click to your component in the viewport > Save as
File > Save as

These are two different things. Check this for more info.