UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

93 lines 1.92 kB
import { c as _c } from "react-compiler-runtime"; import { forwardRef } from "react"; import classNames from "classnames"; import { itLogo } from "../../assets/intilityLogo.js"; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; const NavLogo = /*#__PURE__*/forwardRef((t0, ref) => { const $ = _c(19); let children; let className; let logo; let props; if ($[0] !== t0) { ({ children, className, logo, ...props } = t0); $[0] = t0; $[1] = children; $[2] = className; $[3] = logo; $[4] = props; } else { children = $[1]; className = $[2]; logo = $[3]; props = $[4]; } let t1; if ($[5] !== logo) { t1 = typeof logo === "string" ? /*#__PURE__*/_jsx("img", { src: logo, alt: "" }) : logo; $[5] = logo; $[6] = t1; } else { t1 = $[6]; } const logoElement = t1; let t2; if ($[7] !== className) { t2 = classNames("bf-nav-logo", className); $[7] = className; $[8] = t2; } else { t2 = $[8]; } const t3 = logoElement ?? itLogo; let t4; if ($[9] !== t3) { t4 = /*#__PURE__*/_jsx("div", { className: "bf-nav-logo-graphic", children: t3 }); $[9] = t3; $[10] = t4; } else { t4 = $[10]; } let t5; if ($[11] !== children) { t5 = /*#__PURE__*/_jsx("div", { className: "bf-nav-logo-name", children: children }); $[11] = children; $[12] = t5; } else { t5 = $[12]; } let t6; if ($[13] !== props || $[14] !== ref || $[15] !== t2 || $[16] !== t4 || $[17] !== t5) { t6 = /*#__PURE__*/_jsxs("div", { ...props, ref: ref, className: t2, children: [t4, t5] }); $[13] = props; $[14] = ref; $[15] = t2; $[16] = t4; $[17] = t5; $[18] = t6; } else { t6 = $[18]; } return t6; }); NavLogo.displayName = "Nav.Logo"; export default NavLogo;