Figma prototypeing with a design library

Hi! I have worked in Figma for a couple years now but never really done any complicated prototypes. Where I work we have made a big design library. And I wanna make some interactions on the component itself, like Hover and or click effects. But then when I use the component in a different document with the library linked is doesn’t work, hover works fine but if I select like a icon button that is nested in a top nav and choose “change to” I only get the options of the top nav not the icon button I have selected. Any suggestions how to fix it?