Prototyping with variables - overlay functions

Hello, guys!

I’ve watched all the prototyping videos I could find after the last update with variables but I can’t figure out how to connect overlay option menus. For example here I need to have the option to click on the “Mark as read” and change the state of the notification.

How would you approach it? Maybe I have to make the menu as a variant in the component and then use variables to change the properties of the box (solid color and outline) and use boolean variable to close the menu? What happens with the color of the time? Isn’t it too complicated? Or maybe I’m not getting it right.