Component with Hook and Menu

I apologize it was not my intention to disrespect I’m new to the environment and I mistakenly thought that the code was enough to explain everything. I’m starting to develop a multitab panel with a component for each tab. Each component realizes a set of functions within a tab. I can view contents in the tabs (see example image 1 - appearing when i select the tab “Lab” ) but the tab that contains the code that I posted does not display anything (see image 2 appearing when i select the tab “Scansione” containing the above code ) When I select this tab (“Scansione”) I expected instead to present a button with three options as in the example from the following adobe site link from which I copied the code MenuTrigger – React Spectrum


- Thanks in advance for your kind reply