summaryrefslogtreecommitdiffstats
path: root/src/components/Form/Form.tsx
blob: 5e26e8123687e2bd4129073db675b68d299675da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { ReactNode } from 'react';
import styles from './Form.module.scss';

const Form = ({
  children,
  submitHandler,
}: {
  children: ReactNode;
  submitHandler: any;
}) => {
  return (
    <form onSubmit={submitHandler} className={styles.wrapper}>
      {children}
    </form>
  );
};

export default Form;