/* Copyright (c) 2018-2020 Uber Technologies, Inc. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ // @flow import {ARTWORK_SIZES} from './constants.js'; import type {ArtworkSizesT} from './types.js'; export function artworkSizeToValue( artworkSize: ArtworkSizesT, isSublist: boolean, ) { if (isSublist) { switch (artworkSize) { case ARTWORK_SIZES.LARGE: return 24; case ARTWORK_SIZES.SMALL: default: return 16; } } switch (artworkSize) { case ARTWORK_SIZES.SMALL: return 16; case ARTWORK_SIZES.LARGE: return 36; case ARTWORK_SIZES.MEDIUM: default: return 24; } } declare var __DEV__: boolean; declare var __NODE__: boolean; declare var __BROWSER__: boolean;