-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathintroduction-article.component.tsx
More file actions
34 lines (30 loc) · 1.54 KB
/
introduction-article.component.tsx
File metadata and controls
34 lines (30 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
"use client";
import React from "react";
import { getIntroductionContent } from "@/features/localization/services/ui-language-content.service";
import { ArticleComponent } from "@/features/common/components/article/article.component";
import styles from "./introduction-article.module.scss";
import { SidebarNavComponent } from "../sidebar-nav/sidebar-nav.component";
import { EbookAdComponent } from "../ebook-ad/ebook-ad.component";
import { getComponentDictionary } from "@/features/localization/services/component-dictionary.service";
import { IntroductionDictionaryModel } from "@/features/localization/models/introduction-dictionary.model";
import { IntroductionHeroComponent } from "../introduction-hero/introduction-hero.component";
interface IntroductionArticleComponentProps {
languageCode: string;
introductionDictionary: IntroductionDictionaryModel;
}
export const IntroductionArticleComponent: React.FC<
IntroductionArticleComponentProps
> = ({ languageCode, introductionDictionary }) => {
const Introduction = getIntroductionContent({ languageCode });
const componentDictionary = getComponentDictionary(languageCode);
return (
<div className={styles.container}>
<SidebarNavComponent introductionDictionary={introductionDictionary} />
<div className={styles.content}>
<IntroductionHeroComponent languageCode={languageCode} dictionary={introductionDictionary.hero} />
<EbookAdComponent copy={componentDictionary.ebookAd} />
<ArticleComponent>{Introduction}</ArticleComponent>
</div>
</div>
);
};