@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
14 lines (12 loc) • 421 B
JavaScript
import { createContext, useContext } from 'react';
/**
* Context to let components know if a custom theme is being applied.
*/
export const HasCustomThemeContext = /*#__PURE__*/createContext(false);
/**
* Returns whether a custom theme is being applied.
*/
// eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
export function useHasCustomTheme() {
return useContext(HasCustomThemeContext);
}