mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
45 lines
853 B
TypeScript
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,
|
|
})
|
|
};
|