import { observer } from 'mobx-react-lite' ; import type { TLocalizationToken } from './TLocalizationToken' ; import { useTranslate } from './useTranslate' ; interface Props { token : TLocalizationToken ; fallback ? : TLocalizationToken ; } export const Translate = observer < Props > ( function Translate ( { token , fallback } ) { const translate = useTranslate ( ) ; return < > { translate ( token , fallback ) } < />; } ) ;