File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
frontend/src/components/blocks/interview/chat Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,6 @@ interface ChatMessageProps {
14
14
message : ChatMessageType ;
15
15
}
16
16
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
-
31
17
export const ChatMessage : React . FC < ChatMessageProps > = ( { message } ) => {
32
18
return (
33
19
< div className = { `flex ${ message . isUser ? 'justify-end' : 'justify-start' } mb-4` } >
You can’t perform that action at this time.
0 commit comments