import React from 'react'; import { TranslationContextProps } from './TranslationContext'; /** * Higher-Order Component for getting access to the `translate` function in props. * * Requires that the app is decorated by the to inject * the translation dictionaries and function in the context. * * @example * import React from 'react'; * import { translate } from 'react-admin'; * * const MyHelloButton = ({ translate }) => ( * * ); * * export default translate(MyHelloButton); * * @param {*} BaseComponent The component to decorate */ declare const withTranslate: (BaseComponent: React.ComponentType) => React.ComponentClass; export default withTranslate;