import { ContactForm } from '@/compositions/ContactForm/ContactForm'
import { ContactSectionView } from './ContactSectionView'

type ContactSectionProps = {
  title: string
  description: string
  backgroundColor?: 'off-white'
  schema?: 'base' | 'contrast'
  toEmail: string
}

export const ContactSection = ({
  title,
  description,
  schema,
  backgroundColor,
  toEmail,
}: ContactSectionProps) => {
  return (
    <ContactSectionView
      title={title}
      description={description}
      schema={schema}
      backgroundColor={backgroundColor}
      form={<ContactForm schema={schema} toEmail={toEmail} />}
    />
  )
}
