@@ -7,6 +7,7 @@ import { Button, ButtonGroup, FormControl, FormLabel, Textarea, VStack } from '@
7
7
export const MessageInterpolationTextArea = ( props : WidgetProps ) => {
8
8
const { t } = useTranslation ( 'datahub' )
9
9
const chakraProps = getChakra ( { uiSchema : props . uiSchema } )
10
+ const isInterpolationEnabled = import . meta. env . VITE_FLAG_DATAHUB_INTERPOLATION_ENABLED === 'true'
10
11
11
12
const [ currentSelection , setCurrentSelection ] = useState < [ number , number ] | undefined > ( undefined )
12
13
@@ -53,17 +54,19 @@ export const MessageInterpolationTextArea = (props: WidgetProps) => {
53
54
props . hideLabel || ! props . label
54
55
) }
55
56
< VStack alignItems = "flex-start" >
56
- < ButtonGroup size = "xs" variant = "outline" fontFamily = "monospace" flexWrap = "wrap" >
57
- < Interpolation text = "clientId" icon = "#️⃣" />
58
- < Interpolation text = "policyId" icon = "*️⃣" />
59
- < ButtonGroup isAttached size = "xs" >
60
- < Interpolation text = "fromState" icon = "📗" />
61
- < Interpolation text = "toState" icon = "📕" />
57
+ { isInterpolationEnabled && (
58
+ < ButtonGroup size = "xs" variant = "outline" fontFamily = "monospace" flexWrap = "wrap" >
59
+ < Interpolation text = "clientId" icon = "#️⃣" />
60
+ < Interpolation text = "policyId" icon = "*️⃣" />
61
+ < ButtonGroup isAttached size = "xs" >
62
+ < Interpolation text = "fromState" icon = "📗" />
63
+ < Interpolation text = "toState" icon = "📕" />
64
+ </ ButtonGroup >
65
+ < Interpolation text = "validationResult" icon = "🧾" />
66
+ < Interpolation text = "triggerEvent" icon = "☑️" />
67
+ < Interpolation text = "timestamp" icon = "⏲️" />
62
68
</ ButtonGroup >
63
- < Interpolation text = "validationResult" icon = "🧾" />
64
- < Interpolation text = "triggerEvent" icon = "☑️" />
65
- < Interpolation text = "timestamp" icon = "⏲️" />
66
- </ ButtonGroup >
69
+ ) }
67
70
< Textarea
68
71
id = { props . id }
69
72
isRequired = { props . required }
0 commit comments