import React from "react" ; import { DocNodeEnum } from "../util/docs" ; import { SimpleCard , SimpleSubCard } from "./SinglePage" ; export function EnumCard ( { node , nested , } ) { return ( < SimpleCard node = { node } nested = { nested } prefix = "enum" details = { < > < div className = "mt-2" > < p className = "font-medium text-md text-gray-800 dark:text-gray-300" > Members < /p> { node . enumDef . members . length > 0 ? ( node . enumDef . members . map ( ( member ) => { return < SimpleSubCard node = { { name : member . name } } />; } ) ) : ( < div className = "text-gray-900 dark:text-gray-200" > This enum has no members . < /div>)} < /div> < />}/ > ) ; }