import { AlertTriangle } from 'lucide-react'; import type { PropsWithChildren } from 'react'; export function Badge({ children, className = '' }: PropsWithChildren<{ readonly className?: string }>) { return ( {children} ); } export async function Badges({ node }: { readonly node: any }) { const isDeprecated = Boolean(node.summary?.deprecatedBlock?.length); const isProtected = node.isProtected; const isStatic = node.isStatic; const isAbstract = node.isAbstract; const isReadonly = node.isReadonly; const isOptional = node.isOptional; const isExternal = node.isExternal; const isAny = isDeprecated || isProtected || isStatic || isAbstract || isReadonly || isOptional || isExternal; return isAny ? (