UNPKG

@lexical/react

Version:

This package provides Lexical components and hooks for React applications.

11 lines (9 loc) • 601 B
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import{newContext as o,CollaborationContext as t}from"@lexical/react/LexicalCollaborationContextUtils";export{CollaborationContext,useCollaborationContext}from"@lexical/react/LexicalCollaborationContextUtils";import{useMemo as r}from"react";import{jsx as e}from"react/jsx-runtime";function l({children:l}){const i=r(()=>o(),[]); return e(t.Provider,{value:i,children:l})}export{l as LexicalCollaboration};