File size: 291 Bytes
f5d25f5
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { create } from "zustand";

export interface ITextStore {
  text: string;
  updateText: (text: string) => void;
}

// TODO: Make persist in localStorage
export const useTextStore = create<ITextStore>(
  set => ({
    text: "",
    updateText: (text: string) => set({ text })
  }),
);