```js filename="my-addon/manager.js|ts" renderer="common" language="js" import React from 'react'; import { AddonPanel, Button } from '@storybook/components'; import { useGlobals } from '@storybook/manager-api'; export const Panel = () => { const [globals, updateGlobals] = useGlobals(); const isActive = globals['my-param-key'] || false; // 👈 Sets visibility based on the global value. return ( ); }; ```