{"ast":null,"code":"import { useCallback } from 'react';\nimport useTombFinance from './useTombFinance';\nimport useHandleTransactionReceipt from './useHandleTransactionReceipt';\n\nconst useWithdrawFromMasonry = () => {\n  const tombFinance = useTombFinance();\n  const handleTransactionReceipt = useHandleTransactionReceipt();\n  const handleWithdraw = useCallback(amount => {\n    handleTransactionReceipt(tombFinance.withdrawShareFromMasonry(amount), `Withdrew ${amount} BSHARE from the Smoothies `);\n  }, [tombFinance, handleTransactionReceipt]);\n  return {\n    onWithdraw: handleWithdraw\n  };\n};\n\nexport default useWithdrawFromMasonry;","map":{"version":3,"sources":["C:/Users/ali_9/Desktop/StrawBerry_UI/src/hooks/useWithdrawFromMasonry.ts"],"names":["useCallback","useTombFinance","useHandleTransactionReceipt","useWithdrawFromMasonry","tombFinance","handleTransactionReceipt","handleWithdraw","amount","withdrawShareFromMasonry","onWithdraw"],"mappings":"AAAA,SAASA,WAAT,QAA4B,OAA5B;AACA,OAAOC,cAAP,MAA2B,kBAA3B;AACA,OAAOC,2BAAP,MAAwC,+BAAxC;;AAEA,MAAMC,sBAAsB,GAAG,MAAM;AACnC,QAAMC,WAAW,GAAGH,cAAc,EAAlC;AACA,QAAMI,wBAAwB,GAAGH,2BAA2B,EAA5D;AAEA,QAAMI,cAAc,GAAGN,WAAW,CAC/BO,MAAD,IAAoB;AAClBF,IAAAA,wBAAwB,CACtBD,WAAW,CAACI,wBAAZ,CAAqCD,MAArC,CADsB,EAErB,YAAWA,MAAO,6BAFG,CAAxB;AAID,GAN+B,EAOhC,CAACH,WAAD,EAAcC,wBAAd,CAPgC,CAAlC;AASA,SAAO;AAAEI,IAAAA,UAAU,EAAEH;AAAd,GAAP;AACD,CAdD;;AAgBA,eAAeH,sBAAf","sourcesContent":["import { useCallback } from 'react';\nimport useTombFinance from './useTombFinance';\nimport useHandleTransactionReceipt from './useHandleTransactionReceipt';\n\nconst useWithdrawFromMasonry = () => {\n  const tombFinance = useTombFinance();\n  const handleTransactionReceipt = useHandleTransactionReceipt();\n\n  const handleWithdraw = useCallback(\n    (amount: string) => {\n      handleTransactionReceipt(\n        tombFinance.withdrawShareFromMasonry(amount),\n        `Withdrew ${amount} BSHARE from the Smoothies `,\n      );\n    },\n    [tombFinance, handleTransactionReceipt],\n  );\n  return { onWithdraw: handleWithdraw };\n};\n\nexport default useWithdrawFromMasonry;\n"]},"metadata":{},"sourceType":"module"}