Changeset View
Changeset View
Standalone View
Standalone View
web/chat/chat-thread-ancestors.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 { useAncestorThreads } from 'lib/shared/ancestor-threads'; | import { useAncestorThreads } from 'lib/shared/ancestor-threads'; | ||||
import { colorIsDark } from 'lib/shared/thread-utils'; | import { colorIsDark } from 'lib/shared/thread-utils'; | ||||
import { useKeyserverAdmin } from 'lib/shared/user-utils'; | import { useKeyserverAdmin } from 'lib/shared/user-utils'; | ||||
import type { ThreadInfo } from 'lib/types/thread-types'; | import type { ThreadInfo } from 'lib/types/thread-types'; | ||||
import { useResolvedThreadInfo } from 'lib/utils/entity-helpers'; | import { useResolvedThreadInfo } from 'lib/utils/entity-helpers'; | ||||
import CommIcon from '../CommIcon.react'; | import CommIcon from '../CommIcon.react'; | ||||
import SWMansionIcon from '../SWMansionIcon.react'; | |||||
import css from './chat-thread-ancestors.css'; | import css from './chat-thread-ancestors.css'; | ||||
const SHOW_SEE_FULL_STRUCTURE = false; | const SHOW_SEE_FULL_STRUCTURE = false; | ||||
type ThreadAncestorsProps = { | type ThreadAncestorsProps = { | ||||
+threadInfo: ThreadInfo, | +threadInfo: ThreadInfo, | ||||
}; | }; | ||||
function ThreadAncestors(props: ThreadAncestorsProps): React.Node { | function ThreadAncestors(props: ThreadAncestorsProps): React.Node { | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |