diff --git a/packages/status-react/src/icons/unpin-icon.tsx b/packages/status-react/src/icons/unpin-icon.tsx new file mode 100644 index 0000000..32cc441 --- /dev/null +++ b/packages/status-react/src/icons/unpin-icon.tsx @@ -0,0 +1,29 @@ +import React from 'react' + +export const UnpinIcon = (props: React.SVGProps) => { + return ( + + + + + + ) +} diff --git a/packages/status-react/src/routes/chat/chat-message.tsx b/packages/status-react/src/routes/chat/chat-message.tsx index 24b2f45..ce53f79 100644 --- a/packages/status-react/src/routes/chat/chat-message.tsx +++ b/packages/status-react/src/routes/chat/chat-message.tsx @@ -22,6 +22,7 @@ interface Props { reply?: 'text' | 'image' | 'image-text' image?: boolean mention?: boolean + pinned?: boolean } const MessageLink = (props: React.AnchorHTMLAttributes) => { @@ -42,7 +43,7 @@ const MessageLink = (props: React.AnchorHTMLAttributes) => { } export const ChatMessage = (props: Props) => { - const { reply, image, mention } = props + const { reply, image, mention, pinned } = props const { dispatch } = useChatState() @@ -50,7 +51,7 @@ export const ChatMessage = (props: Props) => { <> {reply && } - +