UNPKG

@atlaskit/navigation-system

Version:

The latest navigation system for Atlassian apps.

24 lines • 778 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 const themedLogoIcon = '--ds-top-bar-logo-icon'; export const themedLogoText = '--ds-top-bar-logo-text'; export function LogoRenderer({ logoOrIcon: LogoOrIcon }) { const hasCustomTheme = useHasCustomTheme(); if (hasCustomTheme) { return /*#__PURE__*/React.createElement(LogoOrIcon, { label: "", size: "small", iconColor: `var(${themedLogoIcon})`, textColor: `var(${themedLogoText})` }); } return /*#__PURE__*/React.createElement(LogoOrIcon, { size: "small", label: "", appearance: "brand" }); }