import { Repeater, types } from 'react-bricks/rsc' import { LayoutProps, containerWidthSideGroup, 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 Faq: types.Brick = ({ backgroundColor, borderTop, borderBottom, paddingTop, paddingBottom, width, faqs, }) => { return (
) } Faq.schema = { name: blockNames.Faqs, label: 'Faq', category: 'faq', tags: ['frequently asked questions', 'faq'], playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/Faq/Faq.tsx', previewImageUrl: `/bricks-preview-images/${blockNames.Faqs}.png`, getDefaultProps: () => ({ ...sectionDefaults, borderTop: 'full', width: 'small', 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.', }, ], }), repeaterItems: [ { name: 'faqs', itemType: blockNames.Faq, itemLabel: 'Question', }, ], sideEditProps: [ neutralBackgroundSideGroup, paddingBordersSideGroup, containerWidthSideGroup, ], } export default Faq