@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
28 lines (27 loc) • 1.09 kB
JavaScript
/* side-nav-content.tsx generated by @compiled/babel-plugin v3.0.2 */
import "./side-nav-content.compiled.css";
import { ax, ix } from "@compiled/react/runtime";
import React, { forwardRef } from 'react';
/**
* The main content of the side nav, filling up the middle section. It acts as a scroll container.
*
* It will grow to take up the available space in the side nav — this is used to push the footer to the
* bottom of the side nav.
*/
export var SideNavBody = /*#__PURE__*/forwardRef(_SideNavContent);
// Placing this const below the function breaks Compiled!
var styles = {
scrollContainer: "_16jlkb7n _1o9zkb7n _i0dlf1ug _1reo1wug _18m91wug",
paddingContainer: "_1q51utpp _y4tiutpp _85i5utpp _bozgutpp"
};
function _SideNavContent(_ref, forwardedRef) {
var children = _ref.children,
testId = _ref.testId;
return /*#__PURE__*/React.createElement("div", {
ref: forwardedRef,
"data-testid": testId,
className: ax([styles.scrollContainer])
}, /*#__PURE__*/React.createElement("div", {
className: ax([styles.paddingContainer])
}, children));
}