How to use less frames?

Hello everyone,

First of all I am new to figma. I am designing web UI and there are four frames(there are more than four, but for understanding my issue) in my design. Each frame has unique designs. But in every frame there is a user profile icon at the top right corner. Now I want is whenever I click that user profile icon show little menu box with user settings.(like change password, go to settings etc.) The thing is I need to design 4 frames without the expanding user menu and 4 frame with the expanding user menu. So it will be 8 frames. Insted of doing 8 frames can I design it when I click on that user icon only user menu show up on each four frames.

Use interactive components or open the menu as an overlay.


Thanks mate. You just saved me a lot of time.