@@ -3,6 +3,7 @@ import EditorViewer from 'components/common/EditorViewer/EditorViewer';
3
3
import BytesFormatted from 'components/common/BytesFormatted/BytesFormatted' ;
4
4
import { SchemaType , TopicMessageTimestampTypeEnum } from 'generated-sources' ;
5
5
import { formatTimestamp } from 'lib/dateTimeHelpers' ;
6
+ import AvroMetadata from './AvroMetadata' ;
6
7
7
8
import * as S from './MessageContent.styled' ;
8
9
@@ -18,6 +19,8 @@ export interface MessageContentProps {
18
19
contentSize ?: number ;
19
20
keySerde ?: string ;
20
21
valueSerde ?: string ;
22
+ keyDeserializeProperties ?: { [ key : string ] : any | undefined } ;
23
+ valueDeserializeProperties ?: { [ key : string ] : any | undefined } ;
21
24
}
22
25
23
26
const MessageContent : React . FC < MessageContentProps > = ( {
@@ -30,6 +33,8 @@ const MessageContent: React.FC<MessageContentProps> = ({
30
33
contentSize,
31
34
keySerde,
32
35
valueSerde,
36
+ keyDeserializeProperties,
37
+ valueDeserializeProperties,
33
38
} ) => {
34
39
const [ activeTab , setActiveTab ] = React . useState < Tab > ( 'content' ) ;
35
40
const activeTabContent = ( ) => {
@@ -117,6 +122,8 @@ const MessageContent: React.FC<MessageContentProps> = ({
117
122
</ S . MetadataMeta >
118
123
</ span >
119
124
</ S . Metadata >
125
+
126
+ < AvroMetadata deserializeProperties = { keyDeserializeProperties } />
120
127
121
128
< S . Metadata >
122
129
< S . MetadataLabel > Value Serde</ S . MetadataLabel >
@@ -127,6 +134,9 @@ const MessageContent: React.FC<MessageContentProps> = ({
127
134
</ S . MetadataMeta >
128
135
</ span >
129
136
</ S . Metadata >
137
+
138
+ < AvroMetadata deserializeProperties = { valueDeserializeProperties } />
139
+
130
140
</ S . MetadataWrapper >
131
141
</ S . Section >
132
142
</ td >
0 commit comments