debian-mirror-gitlab/app/assets/javascripts/set_status_modal/utils.js
2022-10-11 01:57:18 +05:30

4 lines
181 B
JavaScript

import { AVAILABILITY_STATUS } from './constants';
export const isUserBusy = (status = '') =>
Boolean(status.length && status.toLowerCase().trim() === AVAILABILITY_STATUS.BUSY);