import { testCall } from "apiCalls/apiEndpoints";
import React from "react";
import { useQuery } from "react-query";

export async function getServerSideProps({ req, res, params }: any) {
  
  const data = await testCall();

  console.log('datakkkkkkkkkk', data.data);
  console.log('headers', data.headers);
  
  return {
    props: {
      
    }
  }
}


function ScratchPad() {
  const {data} = useQuery(['test-call'], testCall);

  return (
    <div>
      <h1>where i test out new ideas</h1>
      <p>hello world</p>
    </div>
  );
}

export default ScratchPad;
