Files
hedena_gold/apps/admin-panel/dist/assets/useDeleteHandler-G0jB2NtG.js
T
s.esmaeiliandCursor 7bbdc6cbda Commit release build artifacts for admin, user-app, and API.
Refresh hashed frontend bundles and the API release bundle after build:release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 00:05:48 +03:30

2 lines
487 B
JavaScript

import{y as r,G as f,M as m}from"./index-Cs-R0M3s.js";function M(o){const{onSuccess:n,successMessage:i="با موفقیت حذف شد",successType:u="success",fallbackErrorMessage:l="خطا در حذف"}=o;async function d(a,e){var t,c;try{(e==null?void 0:e.method)==="post"?await r.post(a):await r.delete(a),f[u](i),await n()}catch(s){m.error({title:((c=(t=s==null?void 0:s.response)==null?void 0:t.data)==null?void 0:c.message)??l,okText:"بستن"})}}return{remove:d}}export{M as u};