| 1 |
import IntegrateCard from "./card"; |
| 2 |
import { |
| 3 |
ElementorIcon, |
| 4 |
DiviIcon, |
| 5 |
WPBakeryIcon, |
| 6 |
Oxygen, |
| 7 |
Beaver, |
| 8 |
Bricks, |
| 9 |
} from "./icons"; |
| 10 |
|
| 11 |
const integrationData = { |
| 12 |
elementor: { |
| 13 |
Icon: ElementorIcon, |
| 14 |
title: "Elementor", |
| 15 |
text: "This addon lets you use Smart Post Gutenberg blocks in Elementor as reusable shortcodes with Saved Templates.", |
| 16 |
// demoLink: "#", |
| 17 |
docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-elementor/", |
| 18 |
}, |
| 19 |
divi: { |
| 20 |
title: "Divi", |
| 21 |
Icon: DiviIcon, |
| 22 |
text: "This addon lets you use Smart Post Gutenberg blocks in Divi as reusable shortcodes with Saved Templates.", |
| 23 |
// demoLink: "#", |
| 24 |
docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-divi/", |
| 25 |
}, |
| 26 |
wpbakery: { |
| 27 |
title: "WPBakery", |
| 28 |
Icon: WPBakeryIcon, |
| 29 |
text: "This addon lets you use Smart Post Gutenberg blocks in WPBakery as reusable shortcodes with Saved Templates.", |
| 30 |
// demoLink: "#", |
| 31 |
docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-wpbakery/", |
| 32 |
}, |
| 33 |
oxygen: { |
| 34 |
title: "Oxygen", |
| 35 |
Icon: Oxygen, |
| 36 |
text: "This addon lets you use Smart Post Gutenberg blocks in Oxygen as reusable shortcodes with Saved Templates.", |
| 37 |
// demoLink: "#", |
| 38 |
docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-oxygen/", |
| 39 |
}, |
| 40 |
beaver: { |
| 41 |
title: "Beaver Builder", |
| 42 |
Icon: Beaver, |
| 43 |
text: "This addon lets you use Smart Post Gutenberg blocks in Beaver as reusable shortcodes with Saved Templates.", |
| 44 |
// demoLink: "#", |
| 45 |
docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-beaver-builder/", |
| 46 |
}, |
| 47 |
bricks: { |
| 48 |
title: "Bricks", |
| 49 |
Icon: Bricks, |
| 50 |
text: "This addon lets you use Smart Post Gutenberg blocks in Bricks as reusable shortcodes with Saved Templates.", |
| 51 |
// demoLink: "#", |
| 52 |
docsLink: "https://wpsmartpost.com/docs/integrate-with-gutenberg-editor/integrate-with-bricks/", |
| 53 |
}, |
| 54 |
}; |
| 55 |
|
| 56 |
const Integrations = ({ integrationOptions, blockShowHideHandler }) => { |
| 57 |
return ( |
| 58 |
<> |
| 59 |
<div className="sp-pcp-blocks-setting-modules-page"> |
| 60 |
<div className="sp-pcp-page-section-title"> |
| 61 |
<h3 className="sp-pcp-blocks-setting-title">Control Page Builder Addons</h3> |
| 62 |
<span>Turn page builder addons on or off as needed to improve performance.</span> |
| 63 |
</div> |
| 64 |
{Object.entries(integrationData)?.map(([name, data]) => { |
| 65 |
const toggleValue = integrationOptions.find((item) => item?.name === name)?.show; |
| 66 |
|
| 67 |
return <IntegrateCard |
| 68 |
key={name} |
| 69 |
itemName={name} |
| 70 |
data={data} |
| 71 |
value={toggleValue} |
| 72 |
integrationName={name} |
| 73 |
blockShowHideHandler={blockShowHideHandler} |
| 74 |
/>; |
| 75 |
})} |
| 76 |
</div> |
| 77 |
</> |
| 78 |
); |
| 79 |
}; |
| 80 |
|
| 81 |
export default Integrations; |
| 82 |
|