import{bH as p,u as l,r,b9 as d,fB as f,o as g,q as o,g9 as I,Q as j}from"./index-46ma1THH.js";const D=()=>{const a=p(),{id:s,fsId:e,fgId:t}=l(),[i,u]=r.useState(!1),c=d(),{handleDelete:n}=r.useContext(f);return{deleteFg:r.useCallback(async()=>{u(!0),await a.featureGroups.delete({projectId:+s,featureStoreId:+e,featureGroupId:+t}),n(g(o.project.featureGroup.overview,o.project.value,{id:s,fsId:e,fgId:t})),a(I.invalidateTags([{type:j.ProjectTags.FeatureGroup,id:t}])),u(!1),c(o.project.featureGroup.list,{fsId:e})},[a,s,e,t,n,c]),isDeleting:i}};export{D as u};
