UNPKG

@atlaskit/navigation-system

Version:

The latest navigation system for Atlassian apps.

12 lines • 577 B
import _extends from "@babel/runtime/helpers/extends"; import React, { forwardRef } from 'react'; import AkLinkIconButton from '@atlaskit/button/icon/link'; import { useHasCustomTheme } from './has-custom-theme-context'; import { ThemedLinkIconButton } from './themed-link-icon-button'; export const LinkIconButton = /*#__PURE__*/forwardRef((props, ref) => { const hasCustomTheme = useHasCustomTheme(); const Component = hasCustomTheme ? ThemedLinkIconButton : AkLinkIconButton; return /*#__PURE__*/React.createElement(Component, _extends({ ref: ref }, props)); });