text-editor-studio-ts
Version:
A powerful mobile-responsive rich text editor built with Lexical and React
11 lines (10 loc) • 853 B
JavaScript
import { useContext, createContext } from "react";
const o = [["Cat", "rgb(125, 50, 0)"], ["Dog", "rgb(100, 0, 0)"], ["Rabbit", "rgb(150, 0, 0)"], ["Frog", "rgb(200, 0, 0)"], ["Fox", "rgb(200, 75, 0)"], ["Hedgehog", "rgb(0, 75, 0)"], ["Pigeon", "rgb(0, 125, 0)"], ["Squirrel", "rgb(75, 100, 0)"], ["Bear", "rgb(125, 100, 0)"], ["Tiger", "rgb(0, 0, 150)"], ["Leopard", "rgb(0, 0, 200)"], ["Zebra", "rgb(0, 0, 250)"], ["Wolf", "rgb(0, 100, 150)"], ["Owl", "rgb(0, 100, 100)"], ["Gull", "rgb(100, 0, 100)"], ["Squid", "rgb(150, 0, 150)"]], b = o[Math.floor(Math.random() * o.length)], e = createContext({ clientID: 0, color: b[1], isCollabActive: false, name: b[0], yjsDocMap: /* @__PURE__ */ new Map() });
function l(r, o2) {
const b2 = useContext(e);
return b2;
}
export {
l
};
//# sourceMappingURL=LexicalCollaborationContext.prod-_XIRbBSl.js.map