feat: autosave

This commit is contained in:
2026-03-14 10:33:03 +01:00
parent 78f5a51aa8
commit a1ad4d52cf
3 changed files with 128 additions and 10 deletions

View File

@@ -171,6 +171,7 @@ export function CanvasPage({ projectId }: CanvasPageProps) {
canRedo,
setStateImmediate,
save,
saveStatus,
} = useCanvasGraph(projectId)
const importInputRef = useRef<HTMLInputElement | null>(null)
@@ -628,6 +629,7 @@ export function CanvasPage({ projectId }: CanvasPageProps) {
: undefined
}
canSave={Boolean(projectId)}
saveStatus={saveStatus}
undo={undo}
redo={redo}
canUndo={canUndo}