diff --git a/src/app/(space)/(core)/~gitbook/pdf/PageControlButtons.tsx b/src/app/(space)/(core)/~gitbook/pdf/PageControlButtons.tsx index ab20e8089..9511bd369 100644 --- a/src/app/(space)/(core)/~gitbook/pdf/PageControlButtons.tsx +++ b/src/app/(space)/(core)/~gitbook/pdf/PageControlButtons.tsx @@ -7,14 +7,14 @@ import { useScrollActiveId } from '@/components/hooks'; import { Button } from '@/components/primitives'; import { t, useLanguage } from '@/intl/client'; import { tcls } from '@/lib/tailwind'; - -import { getPDFUrl } from './params'; +import { getPDFUrl } from '@/lib/urls'; /** * Dynamic controls to show active page and to let the user select between modes. */ export function PageControlButtons(props: { pdfHref: string; + singlePageMode: boolean; /** Array of the [pageId, divId] */ pageIds: Array<[string, string]>; /** Total number of pages targetted by the generation */ @@ -22,7 +22,7 @@ export function PageControlButtons(props: { /** Trademark to display */ trademark?: React.ReactNode; }) { - const { pdfHref, pageIds, total, trademark } = props; + const { pdfHref, singlePageMode, pageIds, total, trademark } = props; const language = useLanguage(); @@ -49,15 +49,17 @@ export function PageControlButtons(props: { 'z-50', )} > - + {singlePageMode ? null : ( + + )}