mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
build(react): build26 from 45504a2b
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
"use client";
|
||||
import { createContext, useContext } from "react";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
//#region src/ui/status-indicator/context.tsx
|
||||
const StatusIndicatorContext = createContext(null);
|
||||
function StatusIndicatorProvider({ value, children }) {
|
||||
return /* @__PURE__ */ jsx(StatusIndicatorContext.Provider, {
|
||||
value,
|
||||
children
|
||||
});
|
||||
}
|
||||
function useStatusIndicatorContext() {
|
||||
const ctx = useContext(StatusIndicatorContext);
|
||||
if (!ctx) throw new Error("StatusIndicator child compounds must be used within a StatusIndicator.Root");
|
||||
return ctx;
|
||||
}
|
||||
//#endregion
|
||||
export { StatusIndicatorProvider, useStatusIndicatorContext };
|
||||
|
||||
//# sourceMappingURL=context.js.map
|
||||
Reference in New Issue
Block a user