import { useIntl } from 'react-intl'; export interface WrappedComponentProps { intl: ReturnType; } type WithIntlProps

= Omit; /** * A higher-order component that injects the `intl` prop into the wrapped component. * @deprecated * Use the `useIntl` hook instead of the `injectIntl` HOC for functional components. The `injectIntl` HOC is intended for legacy class components * @param Component The component to wrap. * @returns A new component with the `intl` prop injected. */ export function injectIntl(Component: React.ComponentType): React.FC> { return function WrappedComponent(props: T) { return ; } as React.FC>; }