export const isWritable = (ownerId) => {return (localStorage.getItem('userId') === ownerId ||localStorage.getItem('role') === 'admin')}export const isReadOnly = (ownerId) => {return !isWritable(ownerId)}export const isSmartPlaylist = (pls) => !!pls.rulesexport const canChangeTracks = (pls) =>isWritable(pls.ownerId) && !isSmartPlaylist(pls) && !pls.sync