import cx from 'classnames';
import React, { FormHTMLAttributes } from 'react';

import css from './dialog-form.module.css';

// -- TYPES

interface IDialogFormProps extends FormHTMLAttributes<HTMLFormElement> {}

// -- MAIN

function DialogForm({ children, className, ...rest }: IDialogFormProps) {
  const cn = cx(className, css.form);

  return (
    <form className={cn} {...rest}>
      {children}
    </form>
  );
}

export default DialogForm;
