import { ReactNode } from 'react'; import styles from './Form.module.scss'; const Form = ({ children, submitHandler, modifier = '', }: { children: ReactNode; submitHandler: any; modifier?: string; }) => { const withModifier = modifier ? styles[`wrapper--${modifier}`] : ''; const classes = `${styles.wrapper} ${withModifier}`; return (
{children}
); }; export default Form;