hensei-web/utils/accountState.tsx

19 lines
349 B
TypeScript

import { proxy } from "valtio";
interface AccountState {
[key: string]: any
account: {
authorized: boolean,
language: 'en' | 'jp'
}
}
export const initialAccountState: AccountState = {
account: {
authorized: false,
language: 'en'
}
}
export const accountState = proxy(initialAccountState)