import { DashboardPage } from "@/components/layout/dashboard-page";
import { withDashboardAccess } from "@/components/layout/dashboard-access";
import type { Metadata } from "next";
import { PageHeader } from "@/components/shared/page";
import { ProfileView } from "@/features/profile/profile-view";
export const metadata: Metadata = { title: "Profile" };
function ProfilePage() {
  return (
    <>
      <PageHeader title="Profile" />
      <ProfileView />
    </>
  );
}

export default withDashboardAccess("/profile", async function DashboardRoute(_props, role) {
  return (
    <DashboardPage role={role}>
      <ProfilePage />
    </DashboardPage>
  );
});
