@porsche-design-system/components-react
Version:
Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.
12 lines (8 loc) • 394 B
JavaScript
;
var jsxRuntime = require('react/jsx-runtime');
const loadingId = 'loading';
const LoadingMessage = ({ loading, initialLoading }) => {
return (jsxRuntime.jsx("span", { id: loadingId, className: "loading", role: "status", children: loading ? 'Loading' : initialLoading ? 'Loading finished' : '' }));
};
exports.LoadingMessage = LoadingMessage;
exports.loadingId = loadingId;