import r from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as n}from"react";import{getS3DownloadLink as o}from"../clients/jsonApi/index.js";function e(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"attachment",c=t(""),a=r(c,2),f=a[0],l=a[1];return n((function(){e&&o(e,i).then((function(r){l(r.url)})).catch((function(r){console.error(r),l("")}))}),[e,i]),f}export{e as default};
//# sourceMappingURL=useSignedURL.js.map
