-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathhero-warning-banner.component.tsx
More file actions
31 lines (29 loc) · 1.08 KB
/
hero-warning-banner.component.tsx
File metadata and controls
31 lines (29 loc) · 1.08 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
import React from "react";
import { HomeDictionaryModel } from "@/features/localization/models/home-dictionary.model";
import { HeroModalStateValues } from "@/features/home/values/hero-modal-state.values";
import { JWT_WARNING_STATE_KEY } from "@/features/home/config/home.config";
import { HeroBannerComponent } from "@/features/common/components/hero/hero-banner.component";
import { HeroModalTypeValues } from "@/features/home/values/hero-modal-type.values";
type HeroWarningBannerComponentProps = {
dictionary: HomeDictionaryModel["warning"];
modalState: HeroModalStateValues;
};
export const HeroWarningBannerComponent: React.FC<
HeroWarningBannerComponentProps
> = ({ dictionary, modalState }) => {
return (
<HeroBannerComponent
initialModalState={modalState}
modalType={HeroModalTypeValues.WARNING}
modalCookieKey={JWT_WARNING_STATE_KEY}
modalSummary={dictionary.summary}
modalContent={
<>
<strong>{dictionary.title}</strong>{" "}
<span>{dictionary.description}</span>
</>
}
modalCta={null}
/>
);
};