summaryrefslogtreecommitdiff
path: root/src/utils/media-queries.ts
blob: d189b94d4a137612315da0318e5eb06b0360663b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { ArtworkConfig } from '@amp/web-app-components/config/components/artwork';
import { getMediaConditions } from '@amp/web-app-components/src/utils/getMediaConditions';
import { buildMediaQueryStore } from '@amp/web-app-components/src/stores/media-query';

const { BREAKPOINTS } = ArtworkConfig.get();

const mediaQueryStore = buildMediaQueryStore(
    'medium',
    getMediaConditions(BREAKPOINTS, { offset: 260 }),
);

export default mediaQueryStore;