UNPKG

@atlaskit/navigation-system

Version:

The latest navigation system for Atlassian apps.

23 lines • 804 B
/* logo-renderer.tsx generated by @compiled/babel-plugin v3.0.2 */ import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; import { useHasCustomTheme } from '../themed/has-custom-theme-context'; export var themedLogoIcon = '--ds-top-bar-logo-icon'; export var themedLogoText = '--ds-top-bar-logo-text'; export function LogoRenderer(_ref) { var LogoOrIcon = _ref.logoOrIcon; var hasCustomTheme = useHasCustomTheme(); if (hasCustomTheme) { return /*#__PURE__*/React.createElement(LogoOrIcon, { label: "", size: "small", iconColor: "var(".concat(themedLogoIcon, ")"), textColor: "var(".concat(themedLogoText, ")") }); } return /*#__PURE__*/React.createElement(LogoOrIcon, { size: "small", label: "", appearance: "brand" }); }