mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-23 20:37:42 +02:00
Normalize album artist list store
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { createContext, useContext } from 'react';
|
||||
import { ListKey } from '/@/renderer/store';
|
||||
|
||||
export const AlbumArtistListContext = createContext<{ id?: string; pageKey: ListKey }>({
|
||||
pageKey: 'albumArtist',
|
||||
});
|
||||
|
||||
export const useAlbumArtistListContext = () => {
|
||||
const ctxValue = useContext(AlbumArtistListContext);
|
||||
return ctxValue;
|
||||
};
|
||||
Reference in New Issue
Block a user