import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { cn } from '../../../../../scalars/lib/utils.js';
import PreviewHeader from './preview-header.js';
const PreviewFile = ({ onClose = () => null, preview, className }) => {
    return (_jsxs("div", { className: cn('relative flex flex-col bg-white rounded-md shadow-[1px_4px_15px_0px_rgba(74,88,15,0.25)] px-6 py-4 gap-4 w-full h-full', className), children: [_jsx(PreviewHeader, { status: "idle", onClose: onClose, title: "PDF Preview" }), _jsx("div", { className: "flex-1 relative rounded-md overflow-hidden", children: _jsx("iframe", { src: `${preview}#toolbar=0&navpanes=0&scrollbar=0`, title: "Previsualizaci\u00F3n de PDF", className: "w-full h-full border-none", children: _jsx("p", { children: "Your browser does not support the preview." }) }) })] }));
};
export default PreviewFile;
//# sourceMappingURL=preview-file.js.map