import ReactMarkdown from 'react-markdown' import { Badge } from 'ui' type IParamProps = any /** * isPrimitive: Indicates whether the value is a basic type such as string or number. It does not refer to an object param. * */ const Param = ({ name, isOptional, type, description, children, isPrimitive }: IParamProps) => { return (
{!isPrimitive && ( {name ?? 'no-name'} )} {isOptional ? ( Optional ) : ( Required )} {type ?? 'no type'}
{description && (
{description}
)} {children}
) } export default Param