"use strict";(self.webpackChunkjjbook=self.webpackChunkjjbook||[]).push([[230],{10230:(e,t,o)=>{o.r(t),o.d(t,{default:()=>p});var a=o(67294),n=o(86010),l=o(95999);const r={popup:"popup_wph0",buttonContainer:"buttonContainer_ox5C"};function p(e){let{onReload:t}=e;const[o,p]=(0,a.useState)(!0);return o&&a.createElement("div",{className:(0,n.Z)("alert","alert--secondary",r.popup)},a.createElement("p",null,a.createElement(l.Z,{id:"theme.PwaReloadPopup.info",description:"The text for PWA reload popup"},"New version available")),a.createElement("div",{className:r.buttonContainer},a.createElement("button",{className:"button button--link",type:"button",onClick:()=>{p(!1),t()}},a.createElement(l.Z,{id:"theme.PwaReloadPopup.refreshButtonText",description:"The text for PWA reload button"},"Refresh")),a.createElement("button",{"aria-label":(0,l.I)({id:"theme.PwaReloadPopup.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of PWA reload popup"}),className:"close",type:"button",onClick:()=>p(!1)},a.createElement("span",{"aria-hidden":"true"},"\xd7"))))}}}]);