export const getEnumKeyByEnumValue = <T extends { [index: string]: string | number }>(myEnum: T, enumValue: string): keyof T | null => {
  let keys = Object.keys(myEnum).filter((x) => myEnum[x] == enumValue);
  return keys.length > 0 ? keys[0] : null;
};
