-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTextImageJumbo.tsx
53 lines (50 loc) · 1.19 KB
/
TextImageJumbo.tsx
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {FunctionComponent} from "react";
import TextImageCard from "./Cards/TextImageCard";
interface IProps {
gridContent: [
{
card: {
id: string;
title: string;
subtitle: string;
paragraph: string;
buttonLink: {
url: string;
title: string;
target: string;
};
image: {
altText: string;
sourceUrl: string;
};
displayImageOption: string;
displayButtonOption: string;
};
}
];
}
const TextImageJumbo: FunctionComponent<IProps> = ({gridContent}) => {
return (
<section className="p-6 px-0 bg-white py-9 rounded-xl">
<div className="container p-0 mx-auto">
<div className="flex flex-col justify-center gap-4 item-center">
{gridContent.map((keys) => (
<TextImageCard
key={keys?.card?.id}
// Content
title={keys?.card?.title}
image={keys?.card?.image}
subtitle={keys?.card?.subtitle}
paragraph={keys?.card?.paragraph}
buttonLink={keys?.card?.buttonLink}
// DisplayOptions
displayImage={keys?.card?.displayImageOption}
displayButton={keys?.card?.displayButtonOption}
/>
))}
</div>
</div>
</section>
);
};
export default TextImageJumbo;