Changeset View
Changeset View
Standalone View
Standalone View
lib/utils/drawer-utils.react.js
// @flow | // @flow | ||||
import { threadIsChannel } from '../shared/thread-utils.js'; | import { threadIsChannel } from '../shared/thread-utils.js'; | ||||
import { communitySubthreads } from '../types/thread-types-enum.js'; | |||||
import { | import { | ||||
type ThreadInfo, | type ThreadInfo, | ||||
type ResolvedThreadInfo, | type ResolvedThreadInfo, | ||||
communitySubthreads, | |||||
} from '../types/thread-types.js'; | } from '../types/thread-types.js'; | ||||
export type CommunityDrawerItemData<T> = { | export type CommunityDrawerItemData<T> = { | ||||
+threadInfo: ThreadInfo, | +threadInfo: ThreadInfo, | ||||
+itemChildren?: $ReadOnlyArray<CommunityDrawerItemData<T>>, | +itemChildren?: $ReadOnlyArray<CommunityDrawerItemData<T>>, | ||||
+hasSubchannelsButton: boolean, | +hasSubchannelsButton: boolean, | ||||
+labelStyle: T, | +labelStyle: T, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |