import React from 'react';
import { StatusChip } from '../../../dataDisplay/status/StatusChip';
export const StatusCellRenderer = props => {
    const { value, getStatus, getLabel } = props;
    const formattedLabel = value => {
        var _a;
        return (_a = value === null || value === void 0 ? void 0 : value.replace(/([a-z])([A-Z])/g, '$1 $2')) === null || _a === void 0 ? void 0 : _a.replace(/\b\w/g, char => char.toUpperCase());
    };
    return (React.createElement(StatusChip, { status: getStatus(value), label: getLabel ? formattedLabel(getLabel(value)) : formattedLabel(value) }));
};
//# sourceMappingURL=StatusCellRenderer.js.map