UNPKG

@cocoy/kit-components

Version:

一些前端组件

20 lines 615 B
import { getLabel, getColor } from '@cocoy/kit-utils'; import { jsx as _jsx } from "react/jsx-runtime"; import { jsxs as _jsxs } from "react/jsx-runtime"; var Status = function Status(_ref) { var value = _ref.value, map = _ref.map; return /*#__PURE__*/_jsxs("div", { className: "mango-status-node", children: [/*#__PURE__*/_jsx("span", { className: "mango-status-dot", style: { backgroundColor: getColor(value, map) } }), /*#__PURE__*/_jsx("span", { className: "mango-status-node-text", children: getLabel(value, map) })] }); }; export default Status;