import{j as m}from"./document_model_editor-B0b9iLkL.js";import{a3 as d,aX as p,aI as c,aP as r,aY as v,s as u}from"./reactor_browser-CqcNBhxi.js";import{u as D,t as f}from"./index-Zdob0kL_.js";import{x as h}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"./react-dom/client-BVPiT_FE.js";import"./graphql_request-BJtmW2JS.js";import"./design_system_ui-cfMsqDx9.js";const Y=()=>{const i=d(),a=i?.type==="deleteDrive",t=a?i.driveId:void 0,[o]=p(t),n=c();if(!o)return null;async function s(){t&&(await v(t),u(n?.[0]),r(),f(e("notifications.deleteDriveSuccess"),{type:"connect-deleted"}))}const{t:e}=D();return m.jsx(h,{open:a,driveName:o.header.name,onCancel:r,header:e("modals.deleteDrive.title",{label:o.header.name}),body:e("modals.deleteDrive.body"),inputPlaceholder:e("modals.deleteDrive.inputPlaceholder"),cancelLabel:e("common.cancel"),continueLabel:e("common.delete"),onContinue:()=>s(),onOpenChange:l=>{if(!l)return r()}})};export{Y as DeleteDriveModal};
