MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / ThreadView

Function ThreadView

apps/web/ui/ThreadView/index.tsx:27–59  ·  view source on GitHub ↗
({
  thread,
  currentChannel,
  currentCommunity,
  isBot,
  isSubDomainRouting,
  settings,
  permissions,
  useJoinContext,
  useUsersContext,
  api,
}: Props)

Source from the content-addressed store, hash-verified

25}
26
27export default function ThreadView({
28 thread,
29 currentChannel,
30 currentCommunity,
31 isBot,
32 isSubDomainRouting,
33 settings,
34 permissions,
35 useJoinContext,
36 useUsersContext,
37 api,
38}: Props) {
39 return (
40 <div className={styles.wrapper}>
41 <Content
42 thread={thread}
43 currentChannel={currentChannel}
44 currentCommunity={currentCommunity}
45 isBot={isBot}
46 isSubDomainRouting={isSubDomainRouting}
47 settings={settings}
48 permissions={permissions}
49 useJoinContext={useJoinContext}
50 useUsersContext={useUsersContext}
51 api={api}
52 fetchMentions={(term?: string) => {
53 if (!term) return Promise.resolve([]);
54 return api.fetchMentions(term, currentCommunity.id);
55 }}
56 />
57 </div>
58 );
59}

Callers

nothing calls this directly

Calls 1

fetchMentionsMethod · 0.65

Tested by

no test coverage detected