import { BookOpenIcon } from "@heroicons/react/20/solid"; import { CodeBlock } from "~/components/code/CodeBlock"; import { LinkButton } from "~/components/primitives/Buttons"; import { Header3 } from "~/components/primitives/Headers"; import { Paragraph } from "~/components/primitives/Paragraph"; import { TextLink } from "~/components/primitives/TextLink"; import { docsPath } from "~/utils/pathBuilder"; export function SchemaTabContent({ schema, inferredSchema, title = "Payload schema", description, showDocsLink = true, }: { schema?: unknown; inferredSchema?: unknown; title?: string; description?: string; showDocsLink?: boolean; }) { if (schema) { return (
schemaTask to define a payload schema for this
task. The schema will appear here and can be used by AI to generate example payloads.