Changeset View
Changeset View
Standalone View
Standalone View
web/chat/chat-thread-list-item-menu.react.js
// @flow | // @flow | ||||
import classNames from 'classnames'; | import classNames from 'classnames'; | ||||
import * as React from 'react'; | import * as React from 'react'; | ||||
import SWMansionIcon from 'lib/components/SWMansionIcon.react.js'; | |||||
import useToggleUnreadStatus from 'lib/hooks/toggle-unread-status'; | import useToggleUnreadStatus from 'lib/hooks/toggle-unread-status'; | ||||
import type { ThreadInfo } from 'lib/types/thread-types'; | import type { ThreadInfo } from 'lib/types/thread-types'; | ||||
import Button from '../components/button.react'; | import Button from '../components/button.react'; | ||||
import { useThreadIsActive } from '../selectors/thread-selectors'; | import { useThreadIsActive } from '../selectors/thread-selectors'; | ||||
import SWMansionIcon from '../SWMansionIcon.react'; | |||||
import css from './chat-thread-list-item-menu.css'; | import css from './chat-thread-list-item-menu.css'; | ||||
type Props = { | type Props = { | ||||
+threadInfo: ThreadInfo, | +threadInfo: ThreadInfo, | ||||
+mostRecentNonLocalMessage: ?string, | +mostRecentNonLocalMessage: ?string, | ||||
+renderStyle?: 'chat' | 'thread', | +renderStyle?: 'chat' | 'thread', | ||||
}; | }; | ||||
function ChatThreadListItemMenu(props: Props): React.Node { | function ChatThreadListItemMenu(props: Props): React.Node { | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |