9s-fe-core
Version:
Core functionalities for authentication, configuration, and repository management.
10 lines (9 loc) • 424 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const antd_1 = require("antd");
const BooleanDisplay = ({ fieldItem }) => {
const isTrue = fieldItem.value == true;
return ((0, jsx_runtime_1.jsx)(antd_1.Tag, { color: isTrue ? 'green' : 'red', children: isTrue ? 'True' : 'False' }, fieldItem.key));
};
exports.default = BooleanDisplay;