import { get } from 'lodash';

export const hasVisibleError = (formik: any, key: string) => get(formik.errors, key) && get(formik.touched, key);

export interface ControlProps<T> {
  translations: any;
  value: T;
  formik: any;
  name: string;
}
