import { API_URL } from "@/data/shared"; export async function fetchUserById(id: string) { const url = `${API_URL}get_user_by_id.php?id=${id}`; const res = await fetch(url); if (!res.ok) return null; return await res.json(); }