import { template, defaultProps } from './utils'

export function FormattedMessage(props) {
  let { message, values, tagName: Element } = props
  message = template(values, message)
  return <Element>{ message }</Element>
}

FormattedMessage.defaultProps = defaultProps

export function FormattedHTMLMessage(props) {
  let { message, values, tagName: Element } = props
  message = template(values, message)
  return <Element>{ message }</Element>
}

FormattedHTMLMessage.defaultProps = defaultProps

@@ -41,16 +41,42 @@
 ./utils'
+%0Aimport React from 'react'
 %0A%0Aexport

add react