Files
Firefly_Srtools_Live/src/stores/enkaStore.ts
T
Kain344 7699ac7139
Gitea Auto Deploy / Deploy-Container (push) Successful in 49s
Refactor TypeScript interfaces and types for consistency and readability
- 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.
2026-07-15 11:04:18 +07:00

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;