import React from "react"
import { cn } from "@/lib/utils"

interface FormProps {
    children: React.ReactNode,
    formAction: ((formData: FormData) => void),
    className?: string
}

const Form = (props: FormProps) => {
    return(
        <form className={cn(props.className)} action={props.formAction}>
            {props.children}
        </form>
    );
}

export default Form