useMetricsOnboardingSidebar.tsx 375 B

123456789101112
  1. import {useCallback} from 'react';
  2. import {SidebarPanelKey} from 'sentry/components/sidebar/types';
  3. import SidebarPanelStore from 'sentry/stores/sidebarPanelStore';
  4. export function useMetricsOnboardingSidebar() {
  5. const activateSidebar = useCallback(() => {
  6. SidebarPanelStore.activatePanel(SidebarPanelKey.METRICS_ONBOARDING);
  7. }, []);
  8. return {activateSidebar};
  9. }