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/volume-indicator/context.tsx
|
||||
const VolumeIndicatorContext = createContext(null);
|
||||
function VolumeIndicatorProvider({ value, children }) {
|
||||
return /* @__PURE__ */ jsx(VolumeIndicatorContext.Provider, {
|
||||
value,
|
||||
children
|
||||
});
|
||||
}
|
||||
function useVolumeIndicatorContext() {
|
||||
const ctx = useContext(VolumeIndicatorContext);
|
||||
if (!ctx) throw new Error("VolumeIndicator child compounds must be used within a VolumeIndicator.Root");
|
||||
return ctx;
|
||||
}
|
||||
//#endregion
|
||||
export { VolumeIndicatorProvider, useVolumeIndicatorContext };
|
||||
|
||||
//# sourceMappingURL=context.js.map
|
||||
Reference in New Issue
Block a user