// app/(CV)/[username]/[shareId]/page.tsx
import { dummyProfileData } from "@/dummyData/data";
import { ProfileDataType } from "@/type/userType";
import SharedProfileClient from "./components/SharedProfileClient";
import { getShareProfile } from "@/lib/services/server.services/shareProfile.services";

interface PageProps {
  params: {
    username: string;
    shareId: string;
  };
}

const SharedProfilePage = async ({ params }: PageProps) => {
  const { username, shareId } = await params;

  const data = await getShareProfile(username, shareId);

  return <SharedProfileClient data={data.data} />;
};

export default SharedProfilePage;
