"use client";

import dynamic from "next/dynamic";
import type { ComponentType } from "react";
import type { PdfViewerProps } from "./pdf_impl";

export type { PdfViewerBox, PdfViewerProps } from "./pdf_impl";

export const PdfViewer: ComponentType<PdfViewerProps> = dynamic(
  () => import("./pdf_impl").then((m) => m.PdfViewerImpl),
  {
    ssr: false,
    loading: () => <div className="text-sm text-muted-foreground">Loading PDF…</div>,
  },
);

