1 import { API_KEY_SOURCE } from '../constants';
2 import type { ProcessedApiKey } from '../interfaces';
4 export const getInternalKeys = (keys: ProcessedApiKey[]) => {
5 return keys.filter(({ source }) => source === API_KEY_SOURCE.PROTON);
8 export const getExternalKeys = (keys: ProcessedApiKey[]) => {
9 return keys.filter(({ source }) => source !== API_KEY_SOURCE.PROTON);