import r from"@babel/runtime/helpers/slicedToArray";import{useState as t,useEffect as n}from"react";import{getS3DownloadLink as e}from"../clients/jsonApi/index.js";function o(o){var i=t(""),u=r(i,2),c=u[0],f=u[1];return n((function(){o&&e(o).then((function(r){return f(r.url)})).catch((function(){return f("")}))}),[o]),c}export{o as default};
