import React from 'react'; import { clientLocale } from '../config/env.json'; import { rtlLangs } from '../../shared/config/i18n'; interface HTMLProps { body: string; bodyAttributes?: Record; headComponents?: React.ReactNode[]; htmlAttributes?: Record; postBodyComponents?: React.ReactNode[]; preBodyComponents?: React.ReactNode[]; } export default function HTML({ body, bodyAttributes, headComponents, htmlAttributes, postBodyComponents, preBodyComponents }: HTMLProps): JSX.Element { const rtlDirectionAttribute = { dir: 'rtl' }; const isRtlLanguage: boolean = rtlLangs.includes(clientLocale); return ( {headComponents} {preBodyComponents}
{postBodyComponents} ); }