1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 export interface DataColumn<T> {
8 configurable?: boolean;
10 render: (item: T) => React.ReactElement<void>;
11 renderHeader?: () => React.ReactElement<void> | null;
14 export const isColumnConfigurable = <T>(column: DataColumn<T>) => {
15 return column.configurable === undefined || column.configurable;