Files
web/app/[lang]/(live)/(protected)/my-pages/profile/layout.tsx
2024-10-16 07:30:45 +02:00

25 lines
594 B
TypeScript

import { env } from "@/env/server"
import Divider from "@/components/TempDesignSystem/Divider"
import type { ProfileLayoutProps } from "@/types/components/myPages/myProfile/layout"
export default function ProfileLayout({
children,
communication,
creditCards,
profile,
}: React.PropsWithChildren<ProfileLayoutProps>) {
return (
<main>
{children}
<section className="profile-layout">
{profile}
<Divider color="burgundy" opacity={8} />
{creditCards}
{env.HIDE_FOR_NEXT_RELEASE ? null : communication}
</section>
</main>
)
}