blob: 11e47fdf95603bfe5ab09c5fc1145846b71f3905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { AVAILABILITY_STATUS, NEVER_TIME_RANGE } from './constants';
export const isUserBusy = (status = '') =>
Boolean(status.length && status.toLowerCase().trim() === AVAILABILITY_STATUS.BUSY);
export const computedClearStatusAfterValue = (value) => {
if (value === null || value.name === NEVER_TIME_RANGE.name) {
return null;
}
return value.shortcut;
};
|