transcriptor-web/public/build/assets/DeleteTeamForm-CGH7MRmP.js
2025-04-05 15:58:14 +02:00

2 lines
1.4 KiB
JavaScript

import{u as d,r as c,m as f,j as e}from"./app-43FwoUKv.js";import{A as u}from"./Modal-Dl0HSC4q.js";import{C as o}from"./ConfirmationModal-A-4mK9mU.js";import{D as s}from"./DangerButton--OsE_WB2.js";import{S as p}from"./SecondaryButton-CKdOzt0Y.js";import{c as x}from"./index-C3aXnQRR.js";import"./SectionTitle-CmR6E75W.js";import"./transition-aKza8ZE9.js";function k({team:r}){const n=d(),[i,t]=c.useState(!1),a=f({});function l(){t(!0)}function m(){a.delete(n("teams.destroy",[r]),{errorBag:"deleteTeam"})}return e.jsxs(u,{title:"Delete Team",description:"Permanently delete this team.",children:[e.jsx("div",{className:"max-w-xl text-sm text-gray-600 dark:text-gray-400",children:"Once a team is deleted, all of its resources and data will be permanently deleted. Before deleting this team, please download any data or information regarding this team that you wish to retain."}),e.jsx("div",{className:"mt-5",children:e.jsx(s,{onClick:l,children:"Delete Team"})}),e.jsxs(o,{isOpen:i,onClose:()=>t(!1),children:[e.jsx(o.Content,{title:"Delete Team",children:"Are you sure you want to delete this team? Once a team is deleted, all of its resources and data will be permanently deleted."}),e.jsxs(o.Footer,{children:[e.jsx(p,{onClick:()=>t(!1),children:"Cancel"}),e.jsx(s,{onClick:m,className:x("ml-2",{"opacity-25":a.processing}),disabled:a.processing,children:"Delete Team"})]})]})]})}export{k as default};