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:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
"use client";
|
||||
import { createContext, useContext } from "react";
|
||||
//#region src/ui/error-dialog/context.tsx
|
||||
const ErrorDialogContext = createContext(null);
|
||||
const ErrorDialogContextProvider = ErrorDialogContext.Provider;
|
||||
function useErrorDialogContext() {
|
||||
const ctx = useContext(ErrorDialogContext);
|
||||
if (!ctx) throw new Error("ErrorDialog compound components must be used within an ErrorDialog.Root");
|
||||
return ctx;
|
||||
}
|
||||
//#endregion
|
||||
export { ErrorDialogContextProvider, useErrorDialogContext };
|
||||
|
||||
//# sourceMappingURL=context.js.map
|
||||
Reference in New Issue
Block a user