export interface Column<T> {
header: string;
selected: boolean;
+ configurable?: boolean;
+ key?: React.Key;
render: (item: T) => React.ReactElement<void>;
-}
\ No newline at end of file
+ renderHeader?: () => React.ReactElement<void>;
+}
+
+export const isColumnConfigurable = <T>(column: Column<T>) => {
+ return column.configurable === undefined || column.configurable === true;
+};
\ No newline at end of file