src/app/components/Curation/HierarchicalGrid/dataStructures.js

Summary

Maintainability
D
2 days
Test Coverage
A
100%
import {
  DesktopBigPromo,
  BigPromo,
  VerticalPromo,
  TallPromo,
  CompactPromo,
  HorizontalPromo,
} from './index.styles';

const DESKTOP = [
  [VerticalPromo],
  [VerticalPromo, VerticalPromo],
  [DesktopBigPromo, TallPromo, TallPromo],
  [DesktopBigPromo, VerticalPromo, VerticalPromo, VerticalPromo],
  [DesktopBigPromo, VerticalPromo, VerticalPromo, VerticalPromo, VerticalPromo],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
];

const TABLET = [
  [VerticalPromo],
  [VerticalPromo, VerticalPromo],
  [DesktopBigPromo, VerticalPromo, VerticalPromo],
  [DesktopBigPromo, VerticalPromo, CompactPromo, CompactPromo],
  [DesktopBigPromo, TallPromo, VerticalPromo, VerticalPromo, VerticalPromo],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
  [
    DesktopBigPromo,
    VerticalPromo,
    VerticalPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
    CompactPromo,
  ],
];

const MOBILE = [
  [VerticalPromo],
  [VerticalPromo, VerticalPromo],
  [BigPromo, VerticalPromo, VerticalPromo],
  [BigPromo, VerticalPromo, VerticalPromo, HorizontalPromo],
  [BigPromo, VerticalPromo, VerticalPromo, VerticalPromo, VerticalPromo],
  [
    BigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
  ],
  [
    BigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    VerticalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
];

const SMALL = [
  [VerticalPromo],
  [VerticalPromo, VerticalPromo],
  [BigPromo, HorizontalPromo, HorizontalPromo],
  [BigPromo, HorizontalPromo, HorizontalPromo, HorizontalPromo],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
  [
    BigPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
    HorizontalPromo,
  ],
];

export { DESKTOP, TABLET, MOBILE, SMALL };