Liferay.Loader.define("@liferay/search-experiences-web@3.0.30/sxp_blueprint_admin/js/hooks/useClipboardJS",["module","exports","require","liferay!search-experiences-web$clipboard","liferay!frontend-js-react-web$react","../utils/toasts"],(function(e,r,a){window;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function useClipboardJS(e){(0,s.useEffect)((()=>{const r=new o.default(e);return r.on("success",(()=>(0,t.openSuccessToast)({message:Liferay.Language.get("copied-to-clipboard")}))),r.on("error",(()=>(0,t.openErrorToast)())),()=>{r.destroy()}}),[e])};var o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("liferay!search-experiences-web$clipboard")),s=a("liferay!frontend-js-react-web$react"),t=a("../utils/toasts")}));
//# sourceMappingURL=useClipboardJS.js.map