// @flow

import { validation } from "@scm-manager/ui-components";

const { isNameValid, isMailValid } = validation;

export { isNameValid, isMailValid };

export const isDisplayNameValid = (displayName: string) => {
  if (displayName) {
    return true;
  }
  return false;
};
export const isPasswordValid = (password: string) => {
  return password.length >= 6 && password.length < 32;
};
