import { ApolloColumnType } from '../interfaces';

export default function withHidden<T>(columns: ApolloColumnType<T>[]): ApolloColumnType<T>[] {
  return columns.filter(item => !item?.hidden);
}
