import React from "react"; import z from "zod"; import { Document } from "@react-pdf/renderer"; import { defineComponent } from "./define-component.js"; export const documentComponent = defineComponent({ name: "document", schema: z.object({ basics: z.object({ name: z.string(), author: z.string().nullish(), language: z.string().nullish(), }), }), additionalProps: z.object({ children: z.any() }), component: ({ children, styles, spec }) => ( {children} ), defaultStyles: { container: {} }, });