@mocanvas/mocanvas · function
declare function PageItemSubmenu({ id, total, name, onRename }: PageItemSubmenuProps): react.JSX.ElementThe per-page actions: rename, duplicate, delete.
Its open state is controlled here rather than left to the submenu, because "Rename" has to close *this* menu and leave the page list open behind it — the rename field it reveals lives in that list. An item that closed the whole menu would put the field out of sight, which is the bug this shape exists to prevent.
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.