import { isLocaleRtl } from '@automattic/i18n-utils';
import clsx from 'clsx';
import Head from 'calypso/components/head';
import { jsonStringifyForHtml } from 'calypso/server/sanitize';
import { chunkCssLinks } from './utils';
function DomainsLanding( {
branchName,
clientData,
domainsLandingData,
inlineScriptNonce,
env,
entrypoint,
head,
i18nLocaleScript,
lang,
manifests,
} ) {
const isRTL = isLocaleRtl( lang );
return (
{ head.metas.map( ( props, index ) => (
) ) }
{ head.links.map( ( props, index ) => (
) ) }
{ chunkCssLinks( entrypoint, isRTL ) }
{ /* eslint-disable wpcalypso/jsx-classname-namespace, react/no-danger */ }
{ domainsLandingData && (
) }
{ clientData && (
) }
{ i18nLocaleScript && }
{ /*
* inline manifest in production, but reference by url for development.
* this lets us have the performance benefit in prod, without breaking HMR in dev
* since the manifest needs to be updated on each save
*/ }
{ env === 'development' && }
{ env !== 'development' &&
manifests.map( ( manifest ) => (
) ) }
{ entrypoint.js.map( ( asset ) => (
) ) }
{ /* eslint-enable wpcalypso/jsx-classname-namespace, react/no-danger */ }
{ /* eslint-enable wpcalypso/jsx-classname-namespace*/ }
);
}
export default DomainsLanding;