import { t } from "i18next";

import { ObjectStatusEnum } from "../enums/ObjectStatusEnum";

export const getStatusTitle = (status?: ObjectStatusEnum) => {
	switch (status) {
		case ObjectStatusEnum.isNotMaintained:
			return t("outOfService");
		case ObjectStatusEnum.isMaintained:
			return t("served");
		case ObjectStatusEnum.service:
			return t("service");
		case ObjectStatusEnum.control:
			return t("underControl");
		default:
			return t("unknown");
	}
};
