import {
  PCN_DELETE_MANAGE_WATCH,
  PCN_POST_MANAGE_WATCH,
  PCN_PUT_MANAGE_WATCH,
  VIDEO_SPONSORED_CONTENT,
} from '@/modules/@common/acl/constants';

import { hasPermission } from '@/modules/@common/user/helpers';

export const canCreate = (userPermissions) => hasPermission(PCN_POST_MANAGE_WATCH, userPermissions);
export const canEdit = (userPermissions) => hasPermission(PCN_PUT_MANAGE_WATCH, userPermissions);
export const canDelete = (userPermissions) => hasPermission(PCN_DELETE_MANAGE_WATCH, userPermissions);
export const canShowPromotionsTab = (userPermissions) => hasPermission(VIDEO_SPONSORED_CONTENT, userPermissions);
