Files
new-phone-who-dis/phone/src/apps/twitter/hooks/state.ts
T
2020-12-04 23:06:01 +01:00

45 lines
853 B
TypeScript

import { atom } from "recoil";
export const twitterState = {
profile: atom({
key: "profile",
default: {},
}),
tweets: atom({
key: "tweets",
default: null,
}),
filteredTweets: atom({
key: "filteredTweets",
default: null,
}),
showCreateTweetModal: atom({
key: "showCreateTweetModal",
default: false,
}),
modalMessage: atom({
key: "modalMessage",
default: "",
}),
createTweetLoading: atom({
key: "createTweetLoading",
default: false,
}),
createTweetSuccessful: atom({
key: "createTweetSuccessful",
default: null,
}),
updateProfileLoading: atom({
key: "updateProfileLoading",
default: false,
}),
updateProfileSuccess: atom({
key: "updateProfileSuccess",
default: null,
}),
notification: atom({
key: "notification",
default: null,
})
};