2024-01-29 12:23:44 +05:30
|
|
|
import type { Metadata } from 'next';
|
2023-06-09 18:21:18 +10:00
|
|
|
|
2024-02-24 22:38:53 +05:30
|
|
|
import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-component-session';
|
|
|
|
|
|
2024-02-06 16:16:10 +11:00
|
|
|
import type { DocumentsPageViewProps } from './documents-page-view';
|
2024-02-08 12:33:20 +11:00
|
|
|
import { DocumentsPageView } from './documents-page-view';
|
2024-02-24 22:38:53 +05:30
|
|
|
import { PublicProfileIntro } from './username-claim/public-profile-intro';
|
2023-06-09 18:21:18 +10:00
|
|
|
|
|
|
|
|
export type DocumentsPageProps = {
|
2024-02-06 16:16:10 +11:00
|
|
|
searchParams?: DocumentsPageViewProps['searchParams'];
|
2023-06-09 18:21:18 +10:00
|
|
|
};
|
|
|
|
|
|
2024-01-29 12:23:44 +05:30
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: 'Documents',
|
|
|
|
|
};
|
2023-06-09 18:21:18 +10:00
|
|
|
|
2024-02-24 22:38:53 +05:30
|
|
|
export default async function DocumentsPage({ searchParams = {} }: DocumentsPageProps) {
|
|
|
|
|
const { user } = await getRequiredServerComponentSession();
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<PublicProfileIntro user={user} />
|
|
|
|
|
<DocumentsPageView searchParams={searchParams} />
|
|
|
|
|
</>
|
|
|
|
|
);
|
2023-06-09 18:21:18 +10:00
|
|
|
}
|