import { TrackType } from '@nuclear/core' ; import _ from 'lodash' ; export const getTrackTitle = ( track ) => track ?. name || track ?. title ; export const getTrackArtist = ( track ) => _ . isString ( track ?. artist ) ? track ?. artist : track ?. artist ?. name ;