import wretch from "wretch"; import { Cell } from "../types"; const USER_ID_HEADER = 'Player-id'; export const fetchGameState = async ( playerId: string, gameId: number ): Promise => { const response = await wretch(`/game/${gameId}`) .headers({ USER_ID_HEADER: playerId }) .get() .json(); console.log(response); return []; };