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