To be honest, nicotine has cognitive enhancing effects. Nicotine alone does not have detrimental effects (aside from vasoconstriction, but it’s a stimulant); the main risk comes from the unknown effects of long term exposure to inhaled chemicals like propelyne glycol/vegetable glycerin.
These chemicals are approved as food additives, though.