import {Type, User, CorporateUser} from "@/interfaces/user";

export const USER_TYPE_LABELS: {[key in Type]: string} = {
	student: "Student",
	teacher: "Teacher",
	corporate: "Corporate",
	agent: "Country Manager",
	admin: "Admin",
	developer: "Developer",
};

export function isCorporateUser(user: User): user is CorporateUser {
	return (user as CorporateUser).corporateInformation !== undefined;
  }