return marking-document pag for d2c

This commit is contained in:
smanylov
2026-03-11 10:53:09 +07:00
parent 413daf37d6
commit fa60a79241
4 changed files with 3 additions and 23 deletions
@@ -3,26 +3,11 @@ import UploadSectionFile from '@/app/components/UploadSectionFile';
import { getAllowedFilesExtensions } from '@/app/actions/fileUpload';
import PageTitleColorFrame from '@/app/ui/page-title-color-frame';
import ProtectionStatistic from '@/app/ui/marking-page/new/protection-statistic';
import { fetchReferralUserStats } from '@/app/actions/referralsActions';
import { getQueryClient } from '@/app/providers/getQueryClient';
export default async function Page() {
const FILE_TYPE = "document";
const { file_extension, max_file_size } = await getAllowedFilesExtensions(FILE_TYPE);
const queryClient = getQueryClient();
try {
const data = await queryClient.fetchQuery({
queryKey: ['referralUserStats'],
queryFn: fetchReferralUserStats,
});
if (data?.referralLink) {
return null;
}
} catch (error) {
}
return (
<div>
<PageTitleColorFrame