mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-09 05:44:01 +00:00
Normalize album artist list store
This commit is contained in:
parent
828cca9c19
commit
123478a24f
14 changed files with 186 additions and 1656 deletions
|
|
@ -0,0 +1,11 @@
|
|||
import { createContext, useContext } from 'react';
|
||||
import { ListKey } from '/@/renderer/store';
|
||||
|
||||
export const AlbumArtistDetailSongListContext = createContext<{ id?: string; pageKey: ListKey }>({
|
||||
pageKey: 'albumArtist',
|
||||
});
|
||||
|
||||
export const useAlbumArtistDetailSongListContext = () => {
|
||||
const ctxValue = useContext(AlbumArtistDetailSongListContext);
|
||||
return ctxValue;
|
||||
};
|
||||
|
|
@ -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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue