import { IItem, ItemQualityLevel } from '@rpg-engine/shared';

export const qualityColorHex = (item: IItem | null) => {
  switch (item?.quality) {
    case ItemQualityLevel.HighQuality:
      return '#00bfff'; 
    case ItemQualityLevel.Exceptional:
      return '#ff8c00'; 
    case ItemQualityLevel.Mastercrafted:
      return '#ff00ff';
    case ItemQualityLevel.Ancient:
      return '#ffd700'; 
    case ItemQualityLevel.Mythic:
      return '#ff0080'; 
    default:
      return 'transparent';
  }
}; 