import {default as VALIDATION_RULE } from '../constants/validation';
import {EMAIL_ERROR_MESSAGE,URL_ERROR_MESSAGE} from './validationMessage';

export const  rule_email=(errorMessage=EMAIL_ERROR_MESSAGE)=>{
return {
    errorMessage: errorMessage,
    pattern: VALIDATION_RULE.EMAIL
}
}

export const rule_URL=(errorMessage=URL_ERROR_MESSAGE)=>{
    return {
        errorMessage: errorMessage,
        pattern: VALIDATION_RULE.URL
    }
}