import { useIntl } from 'react-intl';
const intl = useIntl()
export const MTM = [
{
value: 1,
label: intl.formatMessage({id: 'TEXT.120'})
}
]
trying to translate a text outside of a function but i can find any way to do it
Functions in react that start with "use" are hooks,
You'll need to turn your MTM const into a react component
Hooks can only be used in a react component