diff options
Diffstat (limited to 'src/components/Form/Form.tsx')
| -rw-r--r-- | src/components/Form/Form.tsx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx deleted file mode 100644 index 44763c4..0000000 --- a/src/components/Form/Form.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { ReactNode } from 'react'; -import styles from './Form.module.scss'; - -const Form = ({ - children, - submitHandler, - modifier = '', - id, -}: { - children: ReactNode; - submitHandler: any; - modifier?: string; - id?: string; -}) => { - const withModifier = modifier ? styles[`wrapper--${modifier}`] : ''; - const classes = `${styles.wrapper} ${withModifier}`; - - return ( - <form onSubmit={submitHandler} className={classes} id={id}> - {children} - </form> - ); -}; - -export default Form; |
