breakpointEnum.ts 540 B

12345678910111213141516171819202122232425262728
  1. export enum sizeEnum {
  2. XS = 'XS',
  3. SM = 'SM',
  4. MD = 'MD',
  5. LG = 'LG',
  6. XL = 'XL',
  7. XXL = 'XXL',
  8. }
  9. export enum screenEnum {
  10. XS = 480,
  11. SM = 576,
  12. MD = 768,
  13. LG = 992,
  14. XL = 1200,
  15. XXL = 1600,
  16. }
  17. const screenMap = new Map<sizeEnum, number>();
  18. screenMap.set(sizeEnum.XS, screenEnum.XS);
  19. screenMap.set(sizeEnum.SM, screenEnum.SM);
  20. screenMap.set(sizeEnum.MD, screenEnum.MD);
  21. screenMap.set(sizeEnum.LG, screenEnum.LG);
  22. screenMap.set(sizeEnum.XL, screenEnum.XL);
  23. screenMap.set(sizeEnum.XXL, screenEnum.XXL);
  24. export { screenMap };