laif-ds
Version:
Design System di Laif con componenti React basati su principi di Atomic Design
23 lines (22 loc) • 738 B
JavaScript
"use client";
import { createContext as s, useContext as l } from "react";
const a = s(null);
function u(n, e) {
return { getTheme: function() {
return e ?? null;
} };
}
function f() {
const n = l(a);
return n == null && (function(e, ...r) {
const o = new URL("https://lexical.dev/docs/error"), t = new URLSearchParams();
t.append("code", e);
for (const i of r) t.append("v", i);
throw o.search = t.toString(), Error(`Minified Lexical error #${e}; visit ${o.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
})(8), n;
}
export {
a as LexicalComposerContext,
u as createLexicalComposerContext,
f as useLexicalComposerContext
};