import { FC } from 'react'; import classNames from 'classnames'; import styles from './styles.module.scss'; interface InputWrapperProps { title?: string; error?: string; focused: boolean; notEmpty: boolean; } const InputWrapper: FC = ({ children, notEmpty, title, focused, error, }) => (
{!!title &&
{title}
} {children} {!!error &&
{error}
}
); export { InputWrapper };