@octopusdeploy/design-system-components
Version:
The design systems component library.
13 lines (12 loc) • 605 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Level2OuterPageLoading = Level2OuterPageLoading;
const jsx_runtime_1 = require("react/jsx-runtime");
const SkeletonHeaders_1 = require("../SkeletonHeaders");
const ErrorPanel_1 = require("./ErrorPanel");
function Level2OuterPageLoading({ errors }) {
if (errors && errors.length > 0) {
return errors.map((error, index) => (0, jsx_runtime_1.jsx)(ErrorPanel_1.ErrorPanel, { error: error }, index));
}
return (0, jsx_runtime_1.jsx)(SkeletonHeaders_1.SkeletonHeaders, { showBreadcrumbSkeleton: true });
}