UNPKG

@zohodesk/components

Version:

In this Package, we Provide Some Basic Components to Build Web App

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 }; }