import React, { useState, useEffect } from 'react'; import Link from '@docusaurus/Link'; function CodeValue({ value }) { if (!value) return null; if (value.includes('\n') || value.length > 50) { return (
{value}
);
}
return {value};
}
function NestedTypeTable({ nestedTypes }) {
if (!nestedTypes || nestedTypes.length === 0) return null;
return (
| Type | Description |
|---|---|
| {type.type === 'link' ? ( {type.text} ) : ( type.name || type.type )} | {type.description || type.content} |
{description}
{documentationUrl && (
Details can be found in:
{documentationUrl}
| Name | Type | Required | Description |
|---|---|---|---|
{param.name} |
{param.type}
{hasNestedTypes && (
)}
{hasNestedTypes && isExpanded && (
|
{param.required ? '✅' : '❌'} |
{param.description}
{param.validValues && (
Valid values:
{param.validValues.map((value, idx) => (
)}
{param.defaultValue && (
Defaults:
)}
|