import { IGenericOptions } from '../../../generic/types';

import { IOption } from '../../types';

export const transformMenuOptions = (options: Array<IOption>): Array<IGenericOptions> => {
  return options.map((item: IOption) => {
    return {
      key: item.value || item.label,
      value: item.value,
      label: item.label || item.value
    };
  });
};