"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RenderAs = void 0;
const react_1 = __importDefault(require("react"));
const Text_1 = require("../Text");
const Badge_1 = require("../Badge");
const RenderAs = ({ colName, input }) => {
    let cName = colName.toLowerCase();
    if (cName === 'id') {
        return react_1.default.createElement(Badge_1.Badge, { light: true }, input);
    }
    return react_1.default.createElement(Text_1.Text, null, input);
};
exports.RenderAs = RenderAs;
//# sourceMappingURL=RenderAs.js.map