import { Right } from "../../constants"; export const isValidCompanyRight = (value: any, helper: any) => { if (value == Right.JOB || value == Right.DOPING || value == Right.POOL || value == Right.COMPANY_USER) { return value; } return helper.error('companyRight.invalid'); };