export const storeCatalog = {
  ids: 'mens,womens,newarrivals,top-seller'
};

export type SortFilterItem = {
  title: string;
  slug: string | null;
  sortKey:
    | 'best-matches'
    | 'price-low-to-high'
    | 'price-high-to-low'
    | 'product-name-ascending'
    | 'product-name-descending';
  reverse: boolean;
};

export const defaultSort: SortFilterItem = {
  title: 'Best Matches',
  slug: 'best-matches',
  sortKey: 'best-matches',
  reverse: false
};

export const sorting: SortFilterItem[] = [
  defaultSort,
  {
    title: 'Price Low to High',
    slug: 'price-low-to-high',
    sortKey: 'price-low-to-high',
    reverse: false
  },
  {
    title: 'Price High to Low',
    slug: 'price-high-to-low',
    sortKey: 'price-high-to-low',
    reverse: false
  },
  {
    title: 'Name A - Z',
    slug: 'product-name-ascending',
    sortKey: 'product-name-ascending',
    reverse: false
  },
  {
    title: 'Name Z - A',
    slug: 'product-name-descending',
    sortKey: 'product-name-descending',
    reverse: false
  }
];

export const TAGS = {
  collections: 'collections',
  products: 'products',
  cart: 'cart'
};

export const HIDDEN_PRODUCT_TAG = 'nextjs-frontend-hidden';
export const DEFAULT_OPTION = 'Default Title';