2017-07-16 22:19:45 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { translate } from 'react-i18next'
|
|
|
|
|
2018-03-05 12:46:13 +01:00
|
|
|
function MyComponent ({ t }) {
|
|
|
|
return <p>{t('extendedComponent')}</p>
|
2017-07-16 22:19:45 +02:00
|
|
|
}
|
|
|
|
|
2018-03-05 12:46:13 +01:00
|
|
|
const Extended = translate('common')(MyComponent)
|
2017-07-16 22:19:45 +02:00
|
|
|
|
|
|
|
export default Extended
|