export function useMusicKit ( ) { const musickitGlobal = ( window as any ) . MusicKit ; let musickitInstance ; ( window as any ) . MusicKit . configure ( { developerToken : process . env . react_app_musickittoken , app : { name : 'Star Track React' , build : '1.0' } } ) ; musickitInstance = musickitGlobal . getInstance ( ) ; return [ musickitGlobal , musickitInstance ] ; }