UNPKG

@zohodesk/components

Version:

Dot UI is a customizable React component library built to deliver a clean, accessible, and developer-friendly UI experience. It offers a growing set of reusable components designed to align with modern design systems and streamline application development

20 lines (17 loc) 463 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = cssJSLogic; var _ZindexProvider = require("../../Provider/ZindexProvider"); function cssJSLogic(props) { var isActive = props.isActive, needAutoZindex = props.needAutoZindex; var zIndex = (0, _ZindexProvider.useZIndex)(); var zIndexStyle = isActive && needAutoZindex ? { zIndex: zIndex() } : {}; return { zIndexStyle: zIndexStyle }; }