"use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([["3321"],{13906:function(e,n,t){t.r(n),t.d(n,{default:()=>i});var a=t(56717),r=t(31262),l=t.n(r),c=t(54272),s=t(66002),u=t(40234);let i=function(e){var n=e.onClose,t=e.printout,i=(0,s.useTranslation)().t,o=(0,r.useRef)(null),m=(0,u.useReactToPrint)({content:function(){return o.current}});return l().createElement(l().Fragment,null,l().createElement(a.xBx,{className:c.Z.sectionHeader,closeModal:n},i("printPreview","Print Preview")),l().createElement(a.fef,null,l().createElement("div",{ref:o},t)),l().createElement(a.mzw,null,l().createElement(a.uVA,{className:c.Z.buttonSet},l().createElement(a.zxk,{kind:"secondary",onClick:n,className:c.Z.button},i("cancel","Cancel")),l().createElement(a.zxk,{kind:"primary",onClick:m,className:c.Z.button},i("print","Print")))))}}}]);