Changeset View
Changeset View
Standalone View
Standalone View
web/chat/chat-thread-composer.react.js
// @flow | // @flow | ||||
import classNames from 'classnames'; | import classNames from 'classnames'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { useDispatch } from 'react-redux'; | import { useDispatch } from 'react-redux'; | ||||
import SWMansionIcon from 'lib/components/SWMansionIcon.react.js'; | |||||
import { useENSNames } from 'lib/hooks/ens-cache'; | import { useENSNames } from 'lib/hooks/ens-cache'; | ||||
import { userSearchIndexForPotentialMembers } from 'lib/selectors/user-selectors'; | import { userSearchIndexForPotentialMembers } from 'lib/selectors/user-selectors'; | ||||
import { getPotentialMemberItems } from 'lib/shared/search-utils'; | import { getPotentialMemberItems } from 'lib/shared/search-utils'; | ||||
import { threadIsPending } from 'lib/shared/thread-utils'; | import { threadIsPending } from 'lib/shared/thread-utils'; | ||||
import type { AccountUserInfo, UserListItem } from 'lib/types/user-types'; | import type { AccountUserInfo, UserListItem } from 'lib/types/user-types'; | ||||
import Button from '../components/button.react'; | import Button from '../components/button.react'; | ||||
import Label from '../components/label.react'; | import Label from '../components/label.react'; | ||||
import Search from '../components/search.react'; | import Search from '../components/search.react'; | ||||
import type { InputState } from '../input/input-state'; | import type { InputState } from '../input/input-state'; | ||||
import { updateNavInfoActionType } from '../redux/action-types'; | import { updateNavInfoActionType } from '../redux/action-types'; | ||||
import { useSelector } from '../redux/redux-utils'; | import { useSelector } from '../redux/redux-utils'; | ||||
import SWMansionIcon from '../SWMansionIcon.react'; | |||||
import css from './chat-thread-composer.css'; | import css from './chat-thread-composer.css'; | ||||
type Props = { | type Props = { | ||||
+userInfoInputArray: $ReadOnlyArray<AccountUserInfo>, | +userInfoInputArray: $ReadOnlyArray<AccountUserInfo>, | ||||
+otherUserInfos: { [id: string]: AccountUserInfo }, | +otherUserInfos: { [id: string]: AccountUserInfo }, | ||||
+threadID: string, | +threadID: string, | ||||
+inputState: InputState, | +inputState: InputState, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |