// models import { IUser } from '../../interfaces/user/user.interface'; // enums import { eSharedString, eStringPlaceholder } from '../../enums'; export class UserHelper { public static getUserFromLocalStorage(): IUser | null { const item = localStorage.getItem(eSharedString.USER_LOWERCASE); if (!item) return null; return ( JSON.parse( localStorage.getItem(eSharedString.USER_LOWERCASE) || eStringPlaceholder.EMPTY ) ?? null ); } }