How are these files structured? You mentioned the first one is a server component where you can retrieve the cookies and pass it to the other file, but where is the api.ts and what is it? Isn’t it a server component then?
api.ts