"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=t.useState(""),i=u.default(n,2),c=i[0],o=i[1];return t.useEffect((function(){e&&r.getS3DownloadLink(e).then((function(e){return o(e.url)})).catch((function(){return o("")}))}),[e]),c};
