import { FEATURE_FLAG, type FeatureFlagCatalog } from "~/v3/featureFlags"; export type AuthFeatureControls = { additionalApiKeyLookupEnabled: boolean; }; export function resolveAuthFeatureControls( flags: Partial | Record | undefined ): AuthFeatureControls { return { additionalApiKeyLookupEnabled: flags?.[FEATURE_FLAG.additionalApiKeyLookupEnabled] === true, }; }