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,
|
2022-12-20 14:14:50 +03:00
|
|
|
accounts: new Map(),
|
2022-12-10 12:14:48 +03:00
|
|
|
reloadStatusPage: 0,
|
2022-12-20 14:14:50 +03:00
|
|
|
spoilers: proxyMap([]),
|
2022-12-21 13:02:13 +03:00
|
|
|
scrollPositions: new Map(),
|
2022-12-10 12:14:48 +03:00
|
|
|
// Modals
|
|
|
|
showCompose: false,
|
|
|
|
showSettings: false,
|
|
|
|
showAccount: false,
|
2023-01-04 14:03:11 +03:00
|
|
|
composeCharacterCount: 0,
|
2022-12-10 12:14:48 +03:00
|
|
|
});
|