```js
// /my-addon/manager.js

import React from 'react';

import { useStorybookApi } from '@storybook/api';

export const Panel = () => {
  const state = useStorybookApi();

  return <div>do something with storybook's api</div>;
};
```