import Link from 'next/link' import clsx from 'clsx' import { Heading } from '@/components/Heading' export const a = Link export { Button } from '@/components/Button' export { CodeGroup, Code as code, Pre as pre } from '@/components/Code' export const h2 = function H2(props) { return } export const h3 = function H3(props) { return } export const h4 = function H4(props) { return } export const h5 = function H5(props) { return } function InfoIcon(props) { return ( ) } export function Note({ children }) { return (
{children}
) } export function Row({ children }) { return (
{children}
) } export function Col({ children, sticky = false }) { return (
:first-child]:mt-0 [&>:last-child]:mb-0', sticky && 'xl:sticky xl:top-24' )} > {children}
) } export function Properties({ children }) { return (
    {children}
) } export function Property({ name, type, required, min, max, minLen, maxLen, enumList, children }) { return (
  • Name
    {name}
    Type
    {type}
    Required
    {required && 'required'}
    {!required && 'optional'}
    Enum
    {/*{enumList && "Possible values: [" + enumList.split(',').forEach((type) => ({type})) + "]"}*/} {/* {enumList &&
    Possible Values: [
    }enumList.split(',').map(type => ''+ type + '')}*/} {min && !max &&
    Possible Values: >={min}
    } {max && !min &&
    Possible Values: <={max}
    } {min && max &&
    Possible Values: >={min} and <={max}
    } {minLen && !maxLen &&
    Possible Values: >={minLen} {type === "string" ? "characters" : "objects"}
    } {maxLen && !minLen &&
    Possible Values: <={maxLen} {type === "string" ? "characters" : "objects"}
    } {minLen && maxLen &&
    Possible Values: >={minLen} {type === "string" ? "characters" : "objects"} and <={maxLen} {type === "string" ? "characters" : "objects"}
    }
    Description
    {children}
  • ) }