mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 17:21:41 +10:00
26 lines
801 B
TypeScript
26 lines
801 B
TypeScript
import type { Metadata } from 'next';
|
|
|
|
import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-component-session';
|
|
|
|
import type { DocumentsPageViewProps } from './documents-page-view';
|
|
import { DocumentsPageView } from './documents-page-view';
|
|
import { UpcomingProfileClaimTeaser } from './upcoming-profile-claim-teaser';
|
|
|
|
export type DocumentsPageProps = {
|
|
searchParams?: DocumentsPageViewProps['searchParams'];
|
|
};
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'Documents',
|
|
};
|
|
|
|
export default async function DocumentsPage({ searchParams = {} }: DocumentsPageProps) {
|
|
const { user } = await getRequiredServerComponentSession();
|
|
return (
|
|
<>
|
|
<UpcomingProfileClaimTeaser user={user} />
|
|
<DocumentsPageView searchParams={searchParams} />
|
|
</>
|
|
);
|
|
}
|