Skip to content

Commit 8136163

Browse files
committed
PEER-226: Remove unused code
Signed-off-by: SeeuSim <[email protected]>
1 parent d2db88d commit 8136163

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

frontend/src/components/blocks/interview/chat/chat-message.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,6 @@ interface ChatMessageProps {
1414
message: ChatMessageType;
1515
}
1616

17-
const CodeBlock: React.FC<{ content: string }> = ({ content }) => (
18-
<div className='group relative'>
19-
<pre className='bg-secondary my-4 overflow-x-auto rounded-md p-4 text-sm'>
20-
<code>{content}</code>
21-
</pre>
22-
<button
23-
onClick={() => navigator.clipboard.writeText(content)}
24-
className='bg-secondary/80 absolute right-2 top-2 rounded px-2 py-1 text-xs opacity-0 transition-opacity group-hover:opacity-100'
25-
>
26-
Copy
27-
</button>
28-
</div>
29-
);
30-
3117
export const ChatMessage: React.FC<ChatMessageProps> = ({ message }) => {
3218
return (
3319
<div className={`flex ${message.isUser ? 'justify-end' : 'justify-start'} mb-4`}>

0 commit comments

Comments
 (0)