I want to have a switch case statement inside Step tag to get a correct format message base on step number, but it always prompt error there.
The error says:
[ts] Expression expected
export const MainBoxHeader = props => (
<Row style={{ marginBottom: 12 }} gutter={100}>
<Col span={8}>
<BackButton
style={{ visibility: props.backButtonIsHidden ? 'hidden' : 'visible' }}
onClick={props.onClickBack}
>
<FormattedMessage id="back" />
</BackButton>
</Col>
<Col span={8}>
<Step>
<FormattedMessage id={`SE-196.PopUp${(props.step)}.Step`} />
</Step>
</Col>
<Col span={8}>
<ColorBtn color="purple" onClick={props.onClickNext}>
<FormattedMessage id="continue" />
</ColorBtn>
</Col>
</Row>
);