Changeset View
Changeset View
Standalone View
Standalone View
web/components/thread-avatar.react.js
// @flow | // @flow | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import { | import { | ||||
useAvatarForThread, | useAvatarForThread, | ||||
useENSResolvedAvatar, | useENSResolvedAvatar, | ||||
} from 'lib/shared/avatar-utils.js'; | } from 'lib/shared/avatar-utils.js'; | ||||
import { getSingleOtherUser } from 'lib/shared/thread-utils.js'; | import { getSingleOtherUser } from 'lib/shared/thread-utils.js'; | ||||
import { | import { threadTypes } from 'lib/types/thread-types-enum.js'; | ||||
threadTypes, | import { type RawThreadInfo, type ThreadInfo } from 'lib/types/thread-types.js'; | ||||
type RawThreadInfo, | |||||
type ThreadInfo, | |||||
} from 'lib/types/thread-types.js'; | |||||
import Avatar from './avatar.react.js'; | import Avatar from './avatar.react.js'; | ||||
import { useSelector } from '../redux/redux-utils.js'; | import { useSelector } from '../redux/redux-utils.js'; | ||||
type Props = { | type Props = { | ||||
+threadInfo: RawThreadInfo | ThreadInfo, | +threadInfo: RawThreadInfo | ThreadInfo, | ||||
+size: 'micro' | 'small' | 'large' | 'profile', | +size: 'micro' | 'small' | 'large' | 'profile', | ||||
}; | }; | ||||
Show All 29 Lines |