@@ -4,6 +4,7 @@ import BytesFormatted from 'components/common/BytesFormatted/BytesFormatted';
4
4
import { SchemaType , TopicMessageTimestampTypeEnum } from 'generated-sources' ;
5
5
import { formatTimestamp } from 'lib/dateTimeHelpers' ;
6
6
7
+ import AvroMetadata from './AvroMetadata' ;
7
8
import * as S from './MessageContent.styled' ;
8
9
9
10
type Tab = 'key' | 'content' | 'headers' ;
@@ -18,6 +19,8 @@ export interface MessageContentProps {
18
19
contentSize ?: number ;
19
20
keySerde ?: string ;
20
21
valueSerde ?: string ;
22
+ keyDeserializeProperties ?: { [ key : string ] : unknown | undefined } ;
23
+ valueDeserializeProperties ?: { [ key : string ] : unknown | 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 = ( ) => {
@@ -118,6 +123,8 @@ const MessageContent: React.FC<MessageContentProps> = ({
118
123
</ span >
119
124
</ S . Metadata >
120
125
126
+ < AvroMetadata deserializeProperties = { keyDeserializeProperties } />
127
+
121
128
< S . Metadata >
122
129
< S . MetadataLabel > Value Serde</ S . MetadataLabel >
123
130
< span >
@@ -127,6 +134,8 @@ const MessageContent: React.FC<MessageContentProps> = ({
127
134
</ S . MetadataMeta >
128
135
</ span >
129
136
</ S . Metadata >
137
+
138
+ < AvroMetadata deserializeProperties = { valueDeserializeProperties } />
130
139
</ S . MetadataWrapper >
131
140
</ S . Section >
132
141
</ td >
0 commit comments