import * as React from "react"; import { useState } from "react"; import { Button, Input } from "@relume_io/relume-ui"; import type { ButtonProps } from "@relume_io/relume-ui"; type Props = { heading: string; description: string; inputPlaceholder?: string; button: ButtonProps; termsAndConditions: string; video: string; videoType: string; }; export type Cta30Props = React.ComponentPropsWithoutRef<"section"> & Partial; export const Cta30 = (props: Cta30Props) => { const { heading, description, inputPlaceholder, button, termsAndConditions, video, videoType } = { ...Cta30Defaults, ...props, }; const [emailInput, setEmailInput] = useState(""); const handleSubmit = (event: React.FormEvent) => { event.preventDefault(); console.log({ emailInput }); }; return (

{heading}

{description}

setEmailInput(e.target.value)} />
); }; export const Cta30Defaults: Props = { heading: "Stay tuned!", description: "Bleib' auf dem Laufenden und erfahre alles rund um die UXplore sowie weitere spannende Themen.", inputPlaceholder: "Enter your email", button: { title: "Sign Up", variant: "primary", size: "sm" }, termsAndConditions: `

By clicking Sign Up you're confirming that you agree with our Terms and Conditions.

`, video: "", videoType: "", };