import { client } from "@/api/client"; import type { User } from "@/api/types"; export async function getUserById(id: string, signal?: AbortSignal): Promise { return client(`/users/${encodeURIComponent(id)}`, { signal }); }