phanpy/src/utils/states.js

21 lines
428 B
JavaScript
Raw Normal View History

2022-12-10 12:14:48 +03:00
import { proxy } from 'valtio';
import { proxyMap } from 'valtio/utils';
export default proxy({
history: [],
statuses: proxyMap([]),
home: [],
homeNew: [],
homeLastFetchTime: null,
notifications: [],
notificationsNew: [],
notificationsLastFetchTime: null,
accounts: new Map(),
2022-12-10 12:14:48 +03:00
reloadStatusPage: 0,
spoilers: proxyMap([]),
2022-12-10 12:14:48 +03:00
// Modals
showCompose: false,
showSettings: false,
showAccount: false,
});