"use client"; import { useState } from "react"; import { Editor as InkeEditor } from "inke"; export default function Editor() { const [saveStatus, setSaveStatus] = useState("Saved"); return (
{saveStatus}
{ setSaveStatus("Unsaved"); }} onDebouncedUpdate={() => { setSaveStatus("Saving..."); // Simulate a delay in saving. setTimeout(() => { setSaveStatus("Saved"); }, 500); }} />
); }