MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / save

Function save

src/components/Notepad.tsx:36–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 }, [text]);
35
36 const save = () => {
37 const now = new Date();
38 localStorage.setItem(STORAGE_KEY, JSON.stringify({ text, ts: now.toISOString() }));
39 setSaved(true);
40 setLastSaved(now);
41 };
42
43 const clear = () => {
44 setText("");

Callers 1

NotepadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected