@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 611 B
Source Map (JSON)
{"version":3,"file":"ModalLayerContext.mjs","names":[],"sources":["../../../src/base-ui/Modal/ModalLayerContext.tsx"],"sourcesContent":["'use client';\n\nimport { createContext, use } from 'react';\n\nexport interface ModalLayer {\n popupRef: (node: HTMLElement | null) => void;\n zIndex: number | undefined;\n}\n\nconst ModalLayerContext = createContext<ModalLayer | null>(null);\n\nexport const useModalLayer = () => use(ModalLayerContext);\nexport const ModalLayerProvider = ModalLayerContext.Provider;\n"],"mappings":";;;AASA,MAAM,oBAAoB,cAAiC,KAAK;AAEhE,MAAa,sBAAsB,IAAI,kBAAkB;AACzD,MAAa,qBAAqB,kBAAkB"}