export function getUserId() { if (localStorage.getItem("user")) { return JSON.parse(localStorage.getItem('user')).userId; } else { return ""; } }