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 (
{data.subtitle}
{data.underneathButton && ( )} {data.ctaLink && ({data.ctaLink.text} {data.ctaLink.linkText}
)}