This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import { createContext, useReducer, FC } from 'react' | |
| import { MainStoreContext } from './types' | |
| import { Reducer } from 'react' | |
| import { Action, ActionTypes, MainStoreContext } from '../types' | |
| const reducer: Reducer<MainStoreContext, Action> = ({ state, ...rest }, action) => { | |
| switch (action.type) { | |
| case ActionTypes.OPEN_SIDEBAR: | |
| return { state: { ...state, sidebarOpen: true }, ...rest } | |
| case ActionTypes.CLOSE_SIDEBAR: | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const fetch = require('node-fetch'); | |
| let url = 'https://shop.clevertech.biz/products.json?limit=250'; | |
| let options = { | |
| method: 'GET', | |
| headers: { | |
| cookie: 'storefront_digest=941a23011fdef8c43f4add54afd393479c090a530667631bc48e35745eb58b9d; ' | |
| } | |
| }; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | { | |
| "data": { | |
| "findAllCreditsForUser": { | |
| "orderItems": [ | |
| { | |
| "id": "8f6af825-cfe6-4849-acdc-67f0f8028a2f", | |
| "orderId": "8f6af825-cfe6-4849-acdc-67f0f8028a2f", | |
| "productVariationId": "1c6fa2e9-f7ae-4212-a854-1648c8b2ef18", | |
| "quantity": 1, | |
| "order": { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module.exports = { | |
| client: { | |
| includes: ["./components/**/**.{queries,mutations}.ts"], | |
| service: { | |
| name: "peoplehood", | |
| localSchemaFile: "./schema.gql" | |
| } | |
| } | |
| }; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const threeSum = function (nums) { | |
| const result = [] | |
| let index = 0 | |
| let secondaryIterator = 1 | |
| let iterator = 2 | |
| const dictionary = {} | |
| while (index < nums.length) { |