import{jsx as e,jsxs as i}from"react/jsx-runtime";import{b as r,c as s,h as o,P as a,a as t}from"./index-CQXsL1YZ.js";import"@bbodek/utils";import"react";import{u as l,P as m,a as p,b as n}from"./PreviewToolbar-DqsGLdKD.js";import{P as d}from"./PreviewOverlayWrapper-BRqypEw3.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const c=({file:c,badge:v,isLoading:b,onClose:f,className:O})=>{const{models:{viewerRef:w,viewerSize:E,titleId:P,previewOptions:I},operations:{setPreviewOptions:N}}=l();return e(d,{children:i(r,{className:s(O,a.MOBILE.CONTAINER),children:[e(m,{badge:v,className:a.MOBILE.HEADER,closeOption:{onClose:f},fileName:c?.name??o,titleId:P}),e(p,{"aria-labelledby":P,className:a.MOBILE.VIEWER_WRAPPER,ref:w,children:e(t,{file:c,isLoading:b,previewOptions:I,viewerSize:E})}),e(n,{file:c,previewOptions:I,setPreviewOptions:N})]})})};export{c as default};
//# sourceMappingURL=PreviewSingleMobile-BHlQjuH9.js.map
