import type { ModuleKey } from '@/types';

export function canUse(enabledModules: ModuleKey[] | undefined, moduleKey: ModuleKey): boolean {
  return Boolean(enabledModules?.includes(moduleKey));
}
