import { SetMetadata } from '@nestjs/common';
import type { Permission } from '@pac/types';

export const PERMISSIONS_KEY = 'permissions';
export const RequirePermission = (...permissions: Permission[]) =>
  SetMetadata(PERMISSIONS_KEY, permissions);
