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