import Translate from "@docusaurus/Translate"
import { TypeLabel, TrueLabel } from "@theme/JSONSchemaViewer/labels"
import { useJSVOptionsContext } from "@theme/JSONSchemaViewer/contexts"
import { QualifierMessages } from "@theme/JSONSchemaViewer/utils"
import { CreateDescription } from "@theme/JSONSchemaViewer/JSONSchemaElements"
import type { JSX } from "react"
import type { JSONSchema } from "@theme/JSONSchemaViewer/types"
type Props = {
[x: string]: any
schema: JSONSchema
}
// When schema has the value "true" or empty object, it means that it is ALWAYS valid
export default function CreateAlwaysValid({ schema }: Props): JSX.Element {
const options = useJSVOptionsContext()
const notBoolean = typeof schema !== "boolean"
const description = notBoolean ? schema.description : undefined
return (
<>