File size: 280 Bytes
2dddd1f
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import { create } from 'zustand';

interface AppState {
  mainCurrency: string;
  setMainCurrency: (currency: string) => void;
}

export const useAppStore = create<AppState>((set) => ({
  mainCurrency: 'USD',
  setMainCurrency: (currency) => set({ mainCurrency: currency }),
}));