import{jsx as e,jsxs as i}from"react/jsx-runtime";import{P as s,b as a,c as r,h as o,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 c}from"./PreviewOverlayWrapper-BRqypEw3.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const d=({file:d,badge:P,isLoading:v,onClose:f,className:O})=>{const{models:{viewerRef:b,viewerSize:E,titleId:w,previewOptions:N},operations:{setPreviewOptions:R}}=l();return e(c,{className:s.DESKTOP.WRAPPER,children:i(a,{className:r(O,s.DESKTOP.CONTAINER,"in-flex-v-stack"),children:[e(m,{badge:P,className:s.DESKTOP.HEADER,closeOption:{onClose:f},fileName:d?.name??o,titleId:w}),e(p,{"aria-labelledby":w,className:s.DESKTOP.VIEWER_WRAPPER,ref:b,children:e(t,{file:d,isLoading:v,previewOptions:N,viewerSize:E})}),e(n,{file:d,previewOptions:N,setPreviewOptions:R})]})})};export{d as default};
//# sourceMappingURL=PreviewSingleDesktop-DfvpBjdD.js.map
