18 lines
356 B
TypeScript
18 lines
356 B
TypeScript
const enum MeetingStatus {
|
|
NOT_IN_MEETING = "Not in meeting",
|
|
IN_MEETING = "In meeting",
|
|
}
|
|
|
|
const getStatusColor = (ms: MeetingStatus): string => {
|
|
switch (ms) {
|
|
case MeetingStatus.NOT_IN_MEETING: {
|
|
return "#70ff70";
|
|
}
|
|
case MeetingStatus.IN_MEETING: {
|
|
return "#ff7070";
|
|
}
|
|
}
|
|
};
|
|
|
|
export { MeetingStatus, getStatusColor };
|