Download app/(index)/TextStore.ts from Archana25/Sentify-Sentiment-Analyser: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/spaces/Archana25/Sentify-Sentiment-Analyser/resolve/main/app/(index)/TextStore.ts
- Command line
-
hf download 'hf://spaces/Archana25/Sentify-Sentiment-Analyser/app/(index)/TextStore.ts'
-
curl -L -o TextStore.ts 'https://huggingface.co/spaces/Archana25/Sentify-Sentiment-Analyser/resolve/main/app/(index)/TextStore.ts'
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 }) | |
| }), | |
| ); | |