mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-21 09:23:09 +03:00
20 lines
406 B
JavaScript
20 lines
406 B
JavaScript
|
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 WeakMap(),
|
||
|
reloadStatusPage: 0,
|
||
|
// Modals
|
||
|
showCompose: false,
|
||
|
showSettings: false,
|
||
|
showAccount: false,
|
||
|
});
|