export const multiselectList = (columns: any) => {
  return columns
    .filter((item: any) => item.Header.length > 0)
    .map((item: any) => ({
      key: item.accessor,
      text: item.Header,
      value: item.accessor,
    }));
};

export const multiselectListDefault = (columns: any) => {
  return columns
    .filter((item: any) => item.Header.length > 0)
    .filter((item: any) => item.show !== false)
    .map((item: any) => ({
      key: item.accessor,
      text: item.Header,
      value: item.accessor,
    }));
};
