/**
 * Renders the content of a table cell based on the item type.
 *
 * @param {string | number | boolean | TableItemWithTemplate} item - The item to render.
 * @returns {ReactNode} The rendered content of the table cell.
 */
export function renderTableCellContent(item) {
    if (typeof item === 'object' && item !== null && item !== undefined) {
        return item.template || item.value;
    }
    return item;
}
/**
 * Retrieves the index value of the item.
 *
 * @param {string | number | boolean | TableItemWithTemplate} item - The item to get the index from.
 * @returns {string | number} The index value of the item.
 */
export function getIndex(item) {
    return getItemValue(item);
}
/**
 * Retrieves the value of the item.
 *
 * @param {string | number | boolean | TableItemWithTemplate} item - The item to get the value from.
 * @returns {string | number | boolean} The value of the item.
 */
export function getItemValue(item) {
    if (typeof item === 'object') {
        return item.value;
    }
    return item;
}
//# sourceMappingURL=utils.js.map