export function simplifyColumn({ id: maybeId, name, hideable = true, hiddenFromCustomColumnsSelection = false, infoTooltipProps, ...rest }, { fallbackID } = {}) {
    const id = maybeId ?? String(fallbackID);
    return {
        id,
        name: name ?? '',
        hiddenFromCustomColumnsSelection,
        hideable: maybeId == null ? false : hideable,
        infoTooltipProps: infoTooltipProps
            ? {
                content: infoTooltipProps.content,
                panelContent: infoTooltipProps.panelContent,
                ...infoTooltipProps,
            }
            : undefined,
        ...rest,
    };
}
export function simplifyColumns(tableColumns) {
    return tableColumns.map((props, i) => {
        return simplifyColumn(props, { fallbackID: i });
    });
}
//# sourceMappingURL=simplifyColumns.js.map