({
className,
currentChannel,
currentCommunity,
threads,
topics,
permissions,
readStatus,
isSubDomainRouting,
currentThreadId,
settings,
isBot,
currentUser,
mode,
onClick,
onDelete,
onDrop,
onEdit,
onLoad,
onMute,
onUnmute,
onPin,
onStar,
onReaction,
onRead,
onRemind,
onUnread,
Row = DefaultRow,
activeUsers,
}: {
className?: string;
currentChannel: SerializedChannel;
currentCommunity: SerializedAccount;
threads: SerializedThread[];
topics: SerializedTopic[];
permissions: Permissions;
readStatus?: SerializedReadStatus;
isSubDomainRouting: boolean;
currentThreadId?: string;
settings: Settings;
isBot: boolean;
currentUser: SerializedUser | null;
mode?: Mode;
onClick: (threadId: string) => void;
onDelete: (messageId: string) => void;
onEdit?: (threadId: string, messageId: string) => void;
onMute?: (threadId: string) => void;
onUnmute?: (threadId: string) => void;
onPin: (threadId: string) => void;
onStar: (threadId: string) => void;
onReaction({
threadId,
messageId,
type,
active,
}: {
threadId: string;
messageId: string;
type: string;
active: boolean;
}): void;
onDrop?({
source,
target,
from,
to,
}: {
source: string;
target: string;
from: string;
to: string;
}): void;
onRead?(threadId: string): void;
onRemind?(threaId: string, reminder: ReminderTypes): void;
onUnread?(threadId: string): void;
onLoad?(): void;
Row?: typeof DefaultRow;
activeUsers: string[];
})
| 39 | } |
| 40 | |
| 41 | export default function Grid({ |
| 42 | className, |
| 43 | currentChannel, |
| 44 | currentCommunity, |
| 45 | threads, |
| 46 | topics, |
| 47 | permissions, |
| 48 | readStatus, |
| 49 | isSubDomainRouting, |
| 50 | currentThreadId, |
| 51 | settings, |
| 52 | isBot, |
| 53 | currentUser, |
| 54 | mode, |
| 55 | onClick, |
| 56 | onDelete, |
| 57 | onDrop, |
| 58 | onEdit, |
| 59 | onLoad, |
| 60 | onMute, |
| 61 | onUnmute, |
| 62 | onPin, |
| 63 | onStar, |
| 64 | onReaction, |
| 65 | onRead, |
| 66 | onRemind, |
| 67 | onUnread, |
| 68 | Row = DefaultRow, |
| 69 | activeUsers, |
| 70 | }: { |
| 71 | className?: string; |
| 72 | currentChannel: SerializedChannel; |
| 73 | currentCommunity: SerializedAccount; |
| 74 | threads: SerializedThread[]; |
| 75 | topics: SerializedTopic[]; |
| 76 | permissions: Permissions; |
| 77 | readStatus?: SerializedReadStatus; |
| 78 | isSubDomainRouting: boolean; |
| 79 | currentThreadId?: string; |
| 80 | settings: Settings; |
| 81 | isBot: boolean; |
| 82 | currentUser: SerializedUser | null; |
| 83 | mode?: Mode; |
| 84 | onClick: (threadId: string) => void; |
| 85 | onDelete: (messageId: string) => void; |
| 86 | onEdit?: (threadId: string, messageId: string) => void; |
| 87 | onMute?: (threadId: string) => void; |
| 88 | onUnmute?: (threadId: string) => void; |
| 89 | onPin: (threadId: string) => void; |
| 90 | onStar: (threadId: string) => void; |
| 91 | onReaction({ |
| 92 | threadId, |
| 93 | messageId, |
| 94 | type, |
| 95 | active, |
| 96 | }: { |
| 97 | threadId: string; |
| 98 | messageId: string; |
nothing calls this directly
no test coverage detected