import { ITagHandler , TagNode } from '@cc98/ubb-core' ; import { IContext } from '@cc98/context' ; import React from 'react' ; const handler = { isRecursive : true , render ( node , context , children ) { const { color } = node . tagData ; const banColor = color === 'blue' && context . quoteRoot ? undefined : color ; const style = { color : banColor , } as React . CSSProperties ; return < span style = { style } > { children } < /span>; } , } ; export default handler ;