import * as React from 'react' import { Repeater, types } from 'react-bricks/rsc' import { containerWidthSideGroup, LayoutProps, neutralBackgroundSideGroup, paddingBordersSideGroup, sectionDefaults, } from '../LayoutSideProps' import blockNames from '../blockNames' import Container from '../shared/components/Container' import Section from '../shared/components/Section' export interface FaqProps extends LayoutProps { faqs: types.RepeaterItems } const Faq2cols: types.Brick = ({ backgroundColor, borderTop, borderBottom, paddingTop, paddingBottom, width, faqs, }) => { return (
) } Faq2cols.schema = { name: blockNames.Faqs2cols, label: 'Faq 2 cols', category: 'faq', tags: ['frequently asked questions', 'faq', '2 cols faq'], playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/Faq/Faq2cols.tsx', previewImageUrl: `/bricks-preview-images/${blockNames.Faqs2cols}.png`, getDefaultProps: () => ({ ...sectionDefaults, borderTop: 'full', borderBottom: 'none', faqs: [ { question: 'Why you should change your CMS today?', answer: 'Because you care about your content creators and you are looking for a top developer experience, with a future-proof solution.', }, { question: 'Can I create an e-commerce with React Bricks?', answer: "Sure! E-commerce solutions usually have a poor content management system for the product details page: let's change this with juicy visual editing!", }, ], }), repeaterItems: [ { name: 'faqs', itemType: blockNames.Faq, itemLabel: 'Question', }, ], sideEditProps: [ neutralBackgroundSideGroup, paddingBordersSideGroup, containerWidthSideGroup, ], } export default Faq2cols