sentify / app /(index) /TextStore.ts
samyosm's picture
desktop version complete
f5d25f5
raw
history blame contribute delete
291 Bytes
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 })
}),
);