import * as React from "react"; import { withKnobs, text, boolean, number } from "@storybook/addon-knobs"; import Layout from "../Layout"; import { GuaranteeLayouts } from "./types"; import theme from "../theme"; import { EditorWithCustomData, buildContentData, mobileStateData, } from "@sc/modules/page/Builder/Builder.stories"; import { settings01, settings02, settings03 } from "./"; export default { title: "Plugins|Web Layouts/Guarantees", decorators: [withKnobs], }; interface grpProps { children: JSX.Element | JSX.Element[]; title: string; } const GRP: React.FC = ({ children, title }) => { return (

{title}:

{children}
); }; export const Guarantee01: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Guarantee02: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const Guarantee03: React.FC = () => { return ( <> {boolean("Show Section", false) && ( )} {boolean("Show inspiration", false) && ( )} {boolean("In the Editor", true) && ( )} ); }; export const InTheEditor: React.FC = () => { return ( ); }; export const AllGuarantees: React.FC = () => { const data = { section: { pageMargin: number("Page Margin", 980, { range: true, min: 500, max: 2000, }), }, main_headline: { html: text("Main Headline Text", "I have overrided the text"), render: boolean("Show Main Headline", true), }, sub_headline: { render: boolean("Show Sub Headline", true), }, hero_video: { render: boolean("Show Hero Video", true), }, cta_button: { render: boolean("Show Button (If Present)", true), }, }; return ( <> ); };