Skip to content

The open alternative to Salesforce, designed for AI.

645 B
Raw Blame
import { getServerI18n } from '@/platform/i18n/get-server-i18n';

import { Editorial } from './Editorial';
import { WHY_TWENTY_EDITORIALS } from './editorials.data';

export function WhyTwentyEditorials() {
  const i18n = getServerI18n();

  return (
    <>
      {WHY_TWENTY_EDITORIALS.map((editorial) => (
        <Editorial
          align={editorial.align}
          eyebrow={i18n._(editorial.eyebrow)}
          heading={i18n._(editorial.heading)}
          key={editorial.id}
          paragraphs={[
            i18n._(editorial.paragraphs[0]),
            i18n._(editorial.paragraphs[1]),
          ]}
        />
      ))}
    </>
  );
}