@@ -4,16 +4,7 @@ import { useEffect, useRef, useState } from "react";
4
4
import React from "react" ;
5
5
6
6
import { Brand , DataroomBrand } from "@prisma/client" ;
7
- import {
8
- ChevronDownIcon ,
9
- ChevronLeftIcon ,
10
- ChevronRightIcon ,
11
- ChevronUpIcon ,
12
- ZoomInIcon ,
13
- ZoomOutIcon ,
14
- } from "lucide-react" ;
15
- import { useSession } from "next-auth/react" ;
16
- import { toast } from "sonner" ;
7
+ import { ChevronDownIcon , ChevronUpIcon } from "lucide-react" ;
17
8
18
9
import { WatermarkConfig } from "@/lib/types" ;
19
10
import { cn } from "@/lib/utils" ;
@@ -26,9 +17,7 @@ import { TDocumentData } from "../dataroom/dataroom-view";
26
17
import Nav from "../nav" ;
27
18
import { PoweredBy } from "../powered-by" ;
28
19
import Question from "../question" ;
29
- import { ScreenShield } from "../screen-shield" ;
30
20
import Toolbar from "../toolbar" ;
31
- import ViewDurationSummary from "../visitor-graph" ;
32
21
import { SVGWatermark } from "../watermark-svg" ;
33
22
34
23
const DEFAULT_PRELOADED_IMAGES_NUM = 5 ;
@@ -103,7 +92,6 @@ export default function PagesVerticalViewer({
103
92
allowDownload,
104
93
feedbackEnabled,
105
94
screenshotProtectionEnabled,
106
- screenShieldPercentage,
107
95
versionNumber,
108
96
brand,
109
97
documentName,
@@ -133,7 +121,6 @@ export default function PagesVerticalViewer({
133
121
allowDownload : boolean ;
134
122
feedbackEnabled : boolean ;
135
123
screenshotProtectionEnabled : boolean ;
136
- screenShieldPercentage : number | null ;
137
124
versionNumber : number ;
138
125
brand ?: Partial < Brand > | Partial < DataroomBrand > | null ;
139
126
documentName ?: string ;
@@ -945,9 +932,7 @@ export default function PagesVerticalViewer({
945
932
isPreview = { isPreview }
946
933
/>
947
934
) : null }
948
- { ! ! screenShieldPercentage ? (
949
- < ScreenShield visiblePercentage = { screenShieldPercentage } />
950
- ) : null }
935
+
951
936
{ screenshotProtectionEnabled ? < ScreenProtector /> : null }
952
937
{ showPoweredByBanner ? < PoweredBy linkId = { linkId } /> : null }
953
938
</ div >
0 commit comments