{"version":3,"sources":["../../../src/primitive-hooks/attachment/useAttachmentRemove.ts"],"sourcesContent":["import { useCallback } from \"react\";\nimport { useAttachmentRuntime } from \"../../context/react/AttachmentContext\";\n\nexport const useAttachmentRemove = () => {\n  const attachmentRuntime = useAttachmentRuntime();\n\n  const handleRemoveAttachment = useCallback(() => {\n    attachmentRuntime.remove();\n  }, [attachmentRuntime]);\n\n  return handleRemoveAttachment;\n};\n"],"mappings":";AAAA,SAAS,mBAAmB;AAC5B,SAAS,4BAA4B;AAE9B,IAAM,sBAAsB,MAAM;AACvC,QAAM,oBAAoB,qBAAqB;AAE/C,QAAM,yBAAyB,YAAY,MAAM;AAC/C,sBAAkB,OAAO;AAAA,EAC3B,GAAG,CAAC,iBAAiB,CAAC;AAEtB,SAAO;AACT;","names":[]}