Files
tehran_taj/apps/admin-panel/dist/assets/useDeleteHandler-NM59WZLX.js
T
mahmoodandClaude Code 3e9f532c6c fix(images): ship Linux codecs and preserve original-image fallback
Vendor the locked sharp Linux runtime and verify it during Docker builds. Add complete image response lengths and persistent frontend fallbacks, with real-codec HTTP and isolated release regression tests. Refresh tested API, admin and customer release artifacts.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-26 18:12:21 +03:30

2 lines
487 B
JavaScript

import{y as r,J as f,N as m}from"./index-CdZ5uJ6J.js";function g(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{g as u};