File tree Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Expand file tree Collapse file tree 1 file changed +0
-41
lines changed Original file line number Diff line number Diff line change @@ -216,44 +216,3 @@ export const CustomPDFControls = () => {
216
216
</ >
217
217
) ;
218
218
} ;
219
-
220
-
221
- const MyPDFControls = (
222
- pdfState ,
223
- pdfControlsConfig ,
224
- pdfZoomOut ,
225
- pdfZoomIn ,
226
- pdfZoomReset ,
227
- pdfTogglePaginated ,
228
- pdfNextPage ,
229
- pdfPrevPage
230
- ) => {
231
- // Example: Only show a custom zoom in/out
232
- return (
233
- < div >
234
- < button onClick = { pdfZoomOut } > Zoom Out</ button >
235
- < span >
236
- Zoom: { pdfState . zoomLevel ?. toFixed ( 2 ) }
237
- </ span >
238
- < button onClick = { pdfZoomIn } > Zoom In</ button >
239
- < button onClick = { pdfZoomReset } disabled = { pdfState . zoomLevel === pdfState . defaultZoomLevel } >
240
- Reset Zoom
241
- </ button >
242
- < button onClick = { pdfTogglePaginated } >
243
- { pdfState . paginated ? "Single Page" : "Paginated" }
244
- </ button >
245
- < span >
246
- Paginated: { pdfState . paginated ? "Yes" : "No" }
247
- </ span >
248
- { pdfState . paginated && pdfState . numPages > 1 && < button onClick = { pdfPrevPage } >
249
- Prev Page
250
- </ button >
251
- < span >
252
- { pdfState. currentPage } / { pdfState . numPages }
253
- </ span >
254
- < button onClick = { pdfNextPage} >
255
- Next Page
256
- < / b u t t o n > < / > }
257
- </div >
258
- ) ;
259
- } ;
You can’t perform that action at this time.
0 commit comments