diff options
| author | Armand Philippot <git@armandphilippot.com> | 2021-12-16 13:40:12 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2021-12-16 13:40:12 +0100 |
| commit | eb459cc248a5940a14193b20d263ffee3d345026 (patch) | |
| tree | 92ea7b91d4481b4b61f86bef5299227e0bca1c3d /src/components/Form/Form.tsx | |
| parent | 94f1c1fbea903e677476a167e51b549bb0c53330 (diff) | |
chore: create contact page
Diffstat (limited to 'src/components/Form/Form.tsx')
| -rw-r--r-- | src/components/Form/Form.tsx | 16 |
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; |
