UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

58 lines 1.26 kB
import { c as _c } from "react-compiler-runtime"; import { forwardRef } from "react"; import classnames from "classnames"; import { jsx as _jsx } from "react/jsx-runtime"; /** * Display a floating bar with custom content at bottom of screen * * @see https://bifrost.intility.com/react/bottomBar */ const BottomBar = /*#__PURE__*/forwardRef((t0, ref) => { const $ = _c(11); let className; let noPadding; let props; if ($[0] !== t0) { ({ className, noPadding, ...props } = t0); $[0] = t0; $[1] = className; $[2] = noPadding; $[3] = props; } else { className = $[1]; noPadding = $[2]; props = $[3]; } let t1; if ($[4] !== className || $[5] !== noPadding) { t1 = classnames("bf-bottom-bar", className, { "bf-bottom-bar-nopadding": noPadding }); $[4] = className; $[5] = noPadding; $[6] = t1; } else { t1 = $[6]; } let t2; if ($[7] !== props || $[8] !== ref || $[9] !== t1) { t2 = /*#__PURE__*/_jsx("div", { ...props, className: t1, ref: ref }); $[7] = props; $[8] = ref; $[9] = t1; $[10] = t2; } else { t2 = $[10]; } return t2; }); BottomBar.displayName = "BottomBar"; export default BottomBar;