const statusMap = {
	status_0: {
		name: "待支付",
		activeClass: "warm",
	},
	status_1: {
		name: "预约成功",
		activeClass: "success",
	},
	status_7: {
		name: "已就诊",
		activeClass: "cancel",
	},
	status_8: {
		name: "过期未就诊",
		activeClass: "cancel",
	},
	status_9: {
		name: "已取消",
		activeClass: "cancel",
	},
	status_2: {
		name: "待就诊",
		activeClass: "cancel",
	},
	status_11: {
		name: "已退款",
		activeClass: "cancel",
	},
};

/* 获取状态名称 */
const statusName = (status) => {
	const { name } = statusMap[`status_${status}`] || {};
	return name;
};

/* 获取状态样式 */
const statusClass = (status) => {
	const { activeClass } = statusMap[`status_${status}`] || {};
	return activeClass;
};

export default {
	statusName,
	statusClass,
};
