UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

14 lines (13 loc) 521 B
"use strict"; exports.__esModule = true; exports.renderStatus = exports.default = void 0; const renderStatus = (type, theme) => { if (type === "success") return theme.orbit.colorTextSuccess; if (type === "warning") return theme.orbit.colorTextWarning; if (type === "critical") return theme.orbit.colorTextCritical; if (type === "info") return theme.orbit.colorTextInfo; return theme.orbit.paletteCloudNormalHover; }; exports.renderStatus = renderStatus; var _default = renderStatus; exports.default = _default;