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' import ReCaptchaProvider from './ReCaptchaProvider' export interface FormSectionProps extends LayoutProps { form: types.RepeaterItems } const FormSection: types.Brick = ({ backgroundColor, borderTop, borderBottom, paddingTop, paddingBottom, width, form, }) => { const reCaptchaKey = process.env.NEXT_PUBLIC_RECAPTCHA_KEY || '' return (
) } FormSection.schema = { name: blockNames.FormSection, label: 'Form', category: 'contact', previewImageUrl: `/bricks-preview-images/${blockNames.FormSection}.png`, playgroundLinkLabel: 'View source code on Github', playgroundLinkUrl: 'https://github.com/ReactBricks/reactbricks-starters/blob/main/packages/reactbricks-ui/nextjs-app/src/contacts/FormSection/FormSection.tsx', repeaterItems: [ { name: 'form', itemType: blockNames.FormBuilder, itemLabel: 'form', min: 1, max: 1, }, ], sideEditProps: [ neutralBackgroundSideGroup, paddingBordersSideGroup, containerWidthSideGroup, ], getDefaultProps: () => ({ ...sectionDefaults, }), } export default FormSection