mirror of
https://github.com/documenso/documenso.git
synced 2025-11-27 06:54:01 +10:00
@@ -1,30 +1,30 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import type { Metadata } from 'next';
|
||||
|
||||
import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-component-session';
|
||||
import { Switch } from '@documenso/ui/primitives/switch';
|
||||
import Link from 'next/link';
|
||||
|
||||
import { SettingsHeader } from '~/components/(dashboard)/settings/layout/header';
|
||||
import { PublicProfileForm } from '~/components/forms/public-profile';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Public Profile',
|
||||
};
|
||||
|
||||
export default async function PublicProfilePage() {
|
||||
const { user } = await getRequiredServerComponentSession();
|
||||
|
||||
export default function PublicProfilePage() {
|
||||
return (
|
||||
<>
|
||||
<SettingsHeader
|
||||
title="Public profile"
|
||||
subtitle="You can choose to enable/disable your profile for public view"
|
||||
titleChildren={<Switch></Switch>}
|
||||
subtitle=""
|
||||
className="max-w-xl"
|
||||
titleChildren={
|
||||
<Link
|
||||
href="#"
|
||||
className="bg-primary dark:text-background ml-2 rounded-full px-2 py-1 text-xs font-semibold sm:px-3"
|
||||
>
|
||||
Coming soon!
|
||||
</Link>
|
||||
}
|
||||
/>
|
||||
|
||||
<PublicProfileForm user={user} className="max-w-xl" />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user