{bookingCode ? (
{tag}
{/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */}
<> ∙ {text} >
{intl.formatMessage(
{
id: "campaignBanner.codeWithBookingCode",
defaultMessage: "Code: {bookingCode}",
},
{ bookingCode }
)}
) : (
<>
{tag}
{text}
{link ? (
{link.title ||
intl.formatMessage({
id: "common.readMore",
defaultMessage: "Read more",
})}
) : null}
>
)}
)
}
function InnerContent({
link,
bookingCode,
children,
}: React.PropsWithChildren