mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
1 line
1.4 KiB
JavaScript
1 line
1.4 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7815],{17815:function(t,e,o){"use strict";o.r(e),o.d(e,{NotifyReminderPopup:function(){return c}});var n=o(85893),r=o(55241),p=o(97937),i=o(67294),s=o(93162),u=o.n(s);let c=t=>{let{children:e,open:o,notificationClicked:s,notificationClosed:c}=t,[a,l]=(0,i.useState)(o),[d,f]=(0,i.useState)(!1);(0,i.useEffect)(()=>{l(o)},[o]),(0,i.useEffect)(()=>{f(!0)},[]);let m=(0,n.jsx)("div",{className:u().title,children:"Stay updated!"}),b=t=>{t.stopPropagation(),s()},_=t=>{t.stopPropagation(),l(!1),c()},x=(0,n.jsxs)("div",{onClick:b,onKeyDown:b,role:"menuitem",tabIndex:0,children:[(0,n.jsx)("button",{type:"button",className:u().closebutton,onClick:_,children:(0,n.jsx)(p.Z,{})}),(0,n.jsxs)("div",{className:u().contentbutton,children:["Click and never miss",(0,n.jsx)("br",{}),"future streams!"]})]});return d&&(0,n.jsx)(r.Z,{placement:"topLeft",defaultOpen:a,open:a,destroyTooltipOnHide:!0,title:m,content:x,overlayInnerStyle:{borderRadius:"5px",cursor:"pointer",paddingTop:"10px",paddingRight:"10px",fontSize:"16px"},color:u().popupBackgroundColor,getPopupContainer:t=>t,children:e})}},93162:function(t){t.exports={popupBackgroundColor:"var(--theme-color-components-primary-button-background)",contentbutton:"NotifyReminderPopup_contentbutton__a_tsp",closebutton:"NotifyReminderPopup_closebutton__GVcP3",title:"NotifyReminderPopup_title__Dm9Iy"}}}]); |