UNPKG

@thunderstorefront/api-mock

Version:

Create Nuxt extendable layer with this GitHub template.

21 lines (19 loc) 484 B
import type { StoreConfig } from '@thunderstorefront/types'; import { DEFAULT_GRID_PER_PAGE, DEFAULT_SORT_BY, DEFAULT_SORT_ORDER } from './const'; export const mockStoreConfig = ( currencyCode: string, locale: string, storeId: string ): StoreConfig => ({ locale: locale, storeId: storeId, storeName: 'default', storeSortOrder: DEFAULT_SORT_ORDER, catalogDefaultSortBy: DEFAULT_SORT_BY, gridPerPage: DEFAULT_GRID_PER_PAGE, baseCurrencyCode: currencyCode });