import * as React from 'react'; import {Team} from 'app/types'; import getDisplayName from 'app/utils/getDisplayName'; import useTeams from 'app/utils/useTeams'; type InjectedTeamsProps = { teams?: Team[]; }; /** * Higher order component that provides a list of teams */ const withTeams =

( WrappedComponent: React.ComponentType

) => { const WithTeams: React.FC & InjectedTeamsProps> = props => { const {teams} = useTeams(); return ; }; WithTeams.displayName = `withTeams(${getDisplayName(WrappedComponent)})`; return WithTeams; }; export default withTeams;