Files
hedena_gold/apps/admin-panel/dist/assets/useDeleteHandler-BtGrVHMu.js
s.esmaeiliandCursor d316d15335 Commit admin and user-app release builds after order and panel polish.
Includes the Dashboard CSS comment fix needed for the admin production build.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-16 23:40:39 +03:30

2 lines
487 B
JavaScript

import{x as r,A as f,M as m}from"./index-QQcP5-AC.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};