Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private _renderIcon() {
const { status } = this;
if (status === INLINE_LOADING_STATE.ERROR) {
return Error20({
class: `${prefix}--inline-loading--error`,
});
}
if (status === INLINE_LOADING_STATE.FINISHED) {
return CheckmarkFilled16({
class: `${prefix}--inline-loading__checkmark-container ${prefix}--inline-loading__svg`,
});
}
if (status === INLINE_LOADING_STATE.INACTIVE || status === INLINE_LOADING_STATE.ACTIVE) {
const classes = classMap({
[`${prefix}--loading ${prefix}--loading--small`]: true,
[`${prefix}--loading--stop`]: status === INLINE_LOADING_STATE.INACTIVE,
});
return html`
<div class="${classes}">
${getLoadingIcon({ type: LOADING_TYPE.SMALL })}</div>