import { useContext } from 'react';
import { FloatingPanelContext } from './constants';

/**
 * Use inside the content component for FloatingPanel in order to get access to context
 */
export function useFloatingPanel() {
  return useContext(FloatingPanelContext);
}