18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
/* eslint-disable formatjs/enforce-description */
|
|
/* eslint-disable formatjs/enforce-default-message */
|
|
/* eslint-disable formatjs/no-id */
|
|
|
|
import { getIntl } from "@/i18n"
|
|
|
|
export default async function ServerComponentWithTernaryInside() {
|
|
const intl = await getIntl()
|
|
|
|
return (
|
|
<h1>
|
|
{intl.formatMessage(
|
|
true ? { id: "Some true string" } : { id: "Some false string" }
|
|
)}
|
|
</h1>
|
|
)
|
|
}
|