Changeset View
Changeset View
Standalone View
Standalone View
native/navigation/tooltip.react.js
Show All 18 Lines | import { | ||||
serverCallStateSelector, | serverCallStateSelector, | ||||
} from 'lib/selectors/server-calls'; | } from 'lib/selectors/server-calls'; | ||||
import type { Dispatch } from 'lib/types/redux-types'; | import type { Dispatch } from 'lib/types/redux-types'; | ||||
import { | import { | ||||
createBoundServerCallsSelector, | createBoundServerCallsSelector, | ||||
useDispatchActionPromise, | useDispatchActionPromise, | ||||
type DispatchActionPromise, | type DispatchActionPromise, | ||||
type ActionFunc, | type ActionFunc, | ||||
type BindServerCall, | |||||
type DispatchFunctions, | type DispatchFunctions, | ||||
} from 'lib/utils/action-utils'; | } from 'lib/utils/action-utils'; | ||||
import { ChatContext, type ChatContextType } from '../chat/chat-context'; | import { ChatContext, type ChatContextType } from '../chat/chat-context'; | ||||
import { SingleLine } from '../components/single-line.react'; | import { SingleLine } from '../components/single-line.react'; | ||||
import { type InputState, InputStateContext } from '../input/input-state'; | import { type InputState, InputStateContext } from '../input/input-state'; | ||||
import { type DimensionsInfo } from '../redux/dimensions-updater.react'; | import { type DimensionsInfo } from '../redux/dimensions-updater.react'; | ||||
import { useSelector } from '../redux/redux-utils'; | import { useSelector } from '../redux/redux-utils'; | ||||
Show All 12 Lines | |||||
/* eslint-enable import/no-named-as-default-member */ | /* eslint-enable import/no-named-as-default-member */ | ||||
export type TooltipEntry<RouteName: $Keys<TooltipModalParamList>> = { | export type TooltipEntry<RouteName: $Keys<TooltipModalParamList>> = { | ||||
+id: string, | +id: string, | ||||
+text: string, | +text: string, | ||||
+onPress: ( | +onPress: ( | ||||
route: TooltipRoute<RouteName>, | route: TooltipRoute<RouteName>, | ||||
dispatchFunctions: DispatchFunctions, | dispatchFunctions: DispatchFunctions, | ||||
bindServerCall: <F>(serverCall: ActionFunc<F>) => F, | bindServerCall: BindServerCall, | ||||
inputState: ?InputState, | inputState: ?InputState, | ||||
navigation: AppNavigationProp<RouteName>, | navigation: AppNavigationProp<RouteName>, | ||||
viewerID: ?string, | viewerID: ?string, | ||||
chatContext: ?ChatContextType, | chatContext: ?ChatContextType, | ||||
) => mixed, | ) => mixed, | ||||
}; | }; | ||||
type TooltipItemProps<RouteName> = { | type TooltipItemProps<RouteName> = { | ||||
+spec: TooltipEntry<RouteName>, | +spec: TooltipEntry<RouteName>, | ||||
▲ Show 20 Lines • Show All 488 Lines • Show Last 20 Lines |