UNPKG

@brizy/ui

Version:
18 lines (17 loc) 623 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LottieExampleUrl = exports.getLottieAnimation = void 0; 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; }); }; exports.getLottieAnimation = getLottieAnimation; exports.LottieExampleUrl = "https://assets6.lottiefiles.com/private_files/lf30_1KyL2Q.json";