import Text from '../types/Text' ; const DEFAULT_COLOR = 'default' ; export function getClassname ( annotations ) { return `
  ${ annotations . bold ? 'rnr-bold' : '' }
  ${ annotations . code ? 'rnr-code' : '' }
  ${ annotations . italic ? 'rnr-italic' : '' }
  ${ annotations . strikethrough ? 'rnr-strikethrough' : '' }
  ${ annotations . underline ? 'rnr-underline' : '' }
  ${ annotations . color !== DEFAULT_COLOR ? `rnr-${ annotations . color }` : '' }
` . trim ( ) ; }