"use strict";var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("../clients/jsonApi/index.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e);module.exports=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"attachment",i=t.useState(""),o=u.default(i,2),c=o[0],a=o[1];return t.useEffect((function(){e&&r.getS3DownloadLink(e,n).then((function(e){a(e.url)})).catch((function(e){console.error(e),a("")}))}),[e,n]),c};
//# sourceMappingURL=useSignedURL.js.map
