import type { UserResponse } from "~/types/interfaces" export default async (serverId: string, userId: string): Promise => { const user = await fetchWithApi(`/users/${userId}`) as UserResponse; return user; }