import { GitHubAPIHeaders } from '@devhub/core' ; import { EMPTY_OBJ } from '../../../utils/constants' ; import { RootState } from '../../types' ; const s = ( state ) => ( state . github && state . github . api ) || EMPTY_OBJ ; export const githubBaseUrlSelector = ( state ) => s ( state ) . baseUrl ; export const githubBaseApiUrlSelector = ( state ) => s ( state ) . baseApiUrl ; export const githubAPIHeadersSelector = ( state ) => s ( state ) . headers || ( EMPTY_OBJ as Partial < GitHubAPIHeaders > ) ;