aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Form/Form.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Form/Form.tsx')
-rw-r--r--src/components/Form/Form.tsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx
new file mode 100644
index 0000000..cc97526
--- /dev/null
+++ b/src/components/Form/Form.tsx
@@ -0,0 +1,16 @@
+import { FormEvent } from 'react';
+import styles from './Form.module.scss';
+
+const Form: React.FunctionComponent = ({ children }) => {
+ const submitForm = (e: FormEvent) => {
+ e.preventDefault();
+ };
+
+ return (
+ <form onSubmit={submitForm} className={styles.wrapper}>
+ {children}
+ </form>
+ );
+};
+
+export default Form;