diff --git a/packages/status-react/src/routes/chat/components/chat-info/index.tsx b/packages/status-react/src/routes/chat/components/chat-info/index.tsx new file mode 100644 index 00000000..36457083 --- /dev/null +++ b/packages/status-react/src/routes/chat/components/chat-info/index.tsx @@ -0,0 +1,75 @@ +import React from 'react' + +import { PinIcon } from '~/src/icons/pin-icon' +import { Avatar, DialogTrigger, Flex, Text } from '~/src/system' + +import { PinnedMessagesDialog } from './pinned-messages-dialog' + +import type { Chat } from '~/src/protocol/use-chat' + +interface Props { + chat: Chat +} + +export const ChatInfo = (props: Props) => { + const { chat } = props + + if (chat.type == 'channel') { + return ( + + +
+ #general + + + + + + {' '} + | General discussions about CryptoKitties. + + +
+
+ ) + } + + if (chat.type == 'group-chat') { + return ( + + +
+ Climate Change + + + + 2 pinned messages + + + + + | 5 members + + +
+
+ ) + } + + return ( + + +
+ pvl.eth + + 0x63FaC9201494f0bd17B9892B9fae4d52fe3BD377 + +
+
+ ) +} diff --git a/packages/status-react/src/routes/chat/components/chat-info/pinned-messages-dialog.tsx b/packages/status-react/src/routes/chat/components/chat-info/pinned-messages-dialog.tsx new file mode 100644 index 00000000..198ef091 --- /dev/null +++ b/packages/status-react/src/routes/chat/components/chat-info/pinned-messages-dialog.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +import { Dialog } from '~/src/system' + +export const PinnedMessagesDialog = () => { + return ( + + {/* TODO: Add pinned messages */} + + ) +}