"use client";

import { useEffect } from "react";
import { useRouter } from "next/navigation";
import { useDataProvider } from "@/lib/demo/data-provider-context";

export default function SettingsPage() {
  const router = useRouter();
  const { basePath } = useDataProvider();

  useEffect(() => {
    router.replace(`${basePath}/settings/profile`);
  }, [router, basePath]);

  return null;
}
