diff options
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; |
