+
+
+ handle().change((doc) =>
+ editTitlebar(doc, { action: "add", id })
+ )
+ }
+ onRemove={(id) =>
+ handle().change((doc) =>
+ editTitlebar(doc, { action: "remove", id })
+ )
+ }
+ onHidden={(id, hidden) =>
+ handle().change((doc) =>
+ editTitlebar(doc, {
+ action: hidden ? "hide" : "show",
+ id,
+ })
+ )
+ }
+ onMove={(from, to) =>
+ handle().change((doc) =>
+ editTitlebar(doc, { action: "move", from, to })
+ )
+ }
+ />
+
-