init
This commit is contained in:
16
src/stores/avatarDataStore.ts
Normal file
16
src/stores/avatarDataStore.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { AvatarType } from '@/types';
|
||||
import { create } from 'zustand'
|
||||
|
||||
|
||||
interface AvatarDataState {
|
||||
listAvatar: AvatarType[];
|
||||
setListAvatar: (list: AvatarType[]) => void;
|
||||
}
|
||||
|
||||
const useAvatarDataStore = create<AvatarDataState>((set) => ({
|
||||
listAvatar: [],
|
||||
setListAvatar: (list: AvatarType[]) => set({ listAvatar: list }),
|
||||
|
||||
}));
|
||||
|
||||
export default useAvatarDataStore;
|
||||
Reference in New Issue
Block a user