text: import bcrypt from 'bcryptjs';
  
  const hashPassword = password => {
    if (password.length < 0) {
      throw new Error('Password must be 8 characters or longer.');
    }
    return bcrypt.hash(password, 10);
  };
  
  export { hashPassword as default };
  