mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-17 08:54:27 +02:00
restructure files onto electron-vite boilerplate
This commit is contained in:
@@ -2,10 +2,6 @@ import { create } from 'zustand';
|
||||
import { devtools } from 'zustand/middleware';
|
||||
import { immer } from 'zustand/middleware/immer';
|
||||
|
||||
export interface AlbumListDataState {
|
||||
itemData: any[];
|
||||
}
|
||||
|
||||
export interface AlbumListDataSlice extends AlbumListDataState {
|
||||
actions: {
|
||||
setItemData: (data: any[]) => void;
|
||||
@@ -13,6 +9,10 @@ export interface AlbumListDataSlice extends AlbumListDataState {
|
||||
};
|
||||
}
|
||||
|
||||
export interface AlbumListDataState {
|
||||
itemData: any[];
|
||||
}
|
||||
|
||||
export const useAlbumListDataStore = create<AlbumListDataSlice>()(
|
||||
devtools(
|
||||
immer((set) => ({
|
||||
|
||||
Reference in New Issue
Block a user