import{j as d}from"./document_model_editor-B0b9iLkL.js";import{a3 as v,aX as f,X as c,a$ as g,x as h,aP as D,b0 as u,b1 as y,b2 as b}from"./reactor_browser-CqcNBhxi.js";import{z as M}from"./design_system_connect-CyoiT4fi.js";import"./graphql-AKTCpY7l.js";import"./drive_explorer-C9ZlHrfH.js";import"./sentry_react-cODD7zWc.js";import"./react-DQSxOgtG.js";import"./sentry_browser-B4YoBIIG.js";import"./react/jsx-runtime-DldvXD6N.js";import"./document_model-BhnxVUEi.js";import"./zod-9j67vCAu.js";import"./design_system-D3L2kJJ3.js";import"./tailwind_merge-Dr4f9Rms.js";import"./react-dom-D6zQJsh6.js";import"./document_drive-CacD9AxC.js";import"./config-CU-aFfVJ.js";import"./design_system_ui-cfMsqDx9.js";function E(){const t=v(),o=t?.type==="driveSettings",r=o?t.driveId:void 0,[a]=f(r),n=c(a),s=g(a);if(!r||!a)return null;async function p(e,i){await b(e.header.id,i)}async function l(e,i){await u(e.header.id,i)}async function m(e,i){await y(e.header.id,i)}return d.jsx(M,{drive:a,sharingType:n??"LOCAL",availableOffline:s,open:o,onRenameDrive:p,onDeleteDrive:()=>h({type:"deleteDrive",driveId:r}),onChangeAvailableOffline:m,onChangeSharingType:l,onOpenChange:e=>{if(!e)return D()}})}export{E as DriveSettingsModal};
