import React from 'react'; import { Link } from "react-router-dom"; import logo from "../assets/img/logo.svg"; const FlexibleForm = ({ data, onFormSubmit }) => { const handleSubmit = (event) => { event.preventDefault(); if (typeof onFormSubmit === 'function') { onFormSubmit(event); } }; return (
heart shaped handshake logo

{data.title}

{data.subtitle}

{data.formFields.map((field, index) => (
))}
{data.underneathButton && (
{data.underneathButton.text}
)} {data.ctaLink && (

{data.ctaLink.text} {data.ctaLink.linkText}

)}
); }; export default FlexibleForm;