/** * 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. * */ "use strict";var e=require("@lexical/react/LexicalComposerContext"),t=require("@lexical/text"),r=require("@lexical/utils"),i=require("react");exports.useLexicalTextEntity=function(c,x,s){const[l]=e.useLexicalComposerContext();i.useEffect((()=>r.mergeRegister(...t.registerLexicalTextEntity(l,c,x,s))),[s,l,c,x])};