export default function setNoteStore() {
  return {
    lastWant: "",
    lastSrc: 0,
    wantAvatar: "",
    wantInput: "",
    lastPage: 1,
    pageUnit: 10,
    viewUnit: 20,

    setLastWant(lastWant: string) {
      this.lastWant = lastWant;
    },

    setLastSrc(lastSrc: number) {
      this.lastSrc = lastSrc;
    },

    setWantInput(wantInput: string) {
      this.wantInput = wantInput;
    },

    setWantAvatar(wantAvatar: string) {
      this.wantAvatar = wantAvatar;
    },

    setLastPage(lastPage: number) {
      this.lastPage = lastPage;
    },
  };
}
