mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
26 lines
504 B
TypeScript
26 lines
504 B
TypeScript
import { atom } from 'recoil';
|
|
import { IEmail } from '../../../common/typings/email';
|
|
|
|
export const emailState = {
|
|
search: atom<IEmail[]>({
|
|
default: null,
|
|
key: 'EMAIL:search',
|
|
}),
|
|
searchTerm: atom<string>({
|
|
default: null,
|
|
key: 'EMAIL:searchTerm',
|
|
}),
|
|
inbox: atom<IEmail[]>({
|
|
default: null,
|
|
key: 'EMAIL:inbox',
|
|
}),
|
|
sent: atom<IEmail[]>({
|
|
default: null,
|
|
key: 'EMAIL:sent',
|
|
}),
|
|
myEmail: atom<string>({
|
|
default: null,
|
|
key: 'EMAIL:myEmail',
|
|
}),
|
|
};
|