@brizy/ui
Version:
React elements in Brizy style
14 lines (13 loc) • 445 B
JavaScript
export const getLottieAnimation = (url, cb) => {
return fetch(url)
.then(response => response.json())
.then(data => {
cb === null || cb === void 0 ? void 0 : cb(data);
return data;
})
.catch(() => {
cb === null || cb === void 0 ? void 0 : cb(undefined);
return undefined;
});
};
export const LottieExampleUrl = "https://assets6.lottiefiles.com/private_files/lf30_1KyL2Q.json";