Gitea Auto Deploy / Deploy-Container (push) Successful in 49s
- Reformatted multiple TypeScript interfaces across various files to ensure consistent spacing and indentation. - Updated `changelog.ts`, `enka.ts`, `extraData.ts`, `gloval.d.ts`, `index.ts`, `lightconeDetail.ts`, `metaData.ts`, `mics.ts`, `modelConfig.ts`, `monsterDetail.ts`, `peakDetail.ts`, `pfDetail.ts`, `psConnect.ts`, `relicDetail.ts`, `showcase.ts`, `srtools.ts`, and `zod/index.ts` for improved code clarity. - Ensured all interfaces are properly formatted with consistent line breaks and spacing. - Made minor adjustments to the `tsconfig.json` file for formatting consistency.
23 lines
858 B
TypeScript
23 lines
858 B
TypeScript
import { CharacterInfoCardType, EnkaResponse } from '@/types';
|
|
import { create } from 'zustand'
|
|
|
|
interface EnkaState {
|
|
selectedCharacters: CharacterInfoCardType[];
|
|
enkaData: EnkaResponse | null;
|
|
uidInput: string;
|
|
setSelectedCharacters: (newListAvatar: CharacterInfoCardType[]) => void;
|
|
setEnkaData: (newEnkaData: EnkaResponse | null) => void;
|
|
setUidInput: (newUidInput: string) => void;
|
|
}
|
|
|
|
const useEnkaStore = create<EnkaState>((set) => ({
|
|
selectedCharacters: [],
|
|
enkaData: null,
|
|
uidInput: "",
|
|
setUidInput: (newUidInput: string) => set({ uidInput: newUidInput }),
|
|
setSelectedCharacters: (newListAvatar: CharacterInfoCardType[]) => set({ selectedCharacters: newListAvatar }),
|
|
setEnkaData: (newEnkaData: EnkaResponse | null) => set({ enkaData: newEnkaData }),
|
|
}));
|
|
|
|
export default useEnkaStore;
|