import SettingsPageClient from "@/app/features/Pages/Settings/SettingsPageClient"; // We can enable this if we want to fetch the user from the database by the id but it's not necessary since we already have the user in the redux store // async function getUser() { // const token = (await cookies()).get("auth_token")?.value; // const payload = token ? await validateToken(token) : null; // const userId = payload?.id; // requires JWT to include id // if (!userId) throw new Error("No user id in token"); // const res = await fetch(`${process.env.NEXT_PUBLIC_BASE_URL}/api/dashboard/admin/users/${userId}`, { // headers: { Authorization: `Bearer ${token}` }, // cache: "no-store", // }); // if (!res.ok) throw new Error("Failed to fetch user"); // return res.json(); // } export default async function SettingsPage() { // const user = await getUser(); return ; }