From cd48255ca452283f4635ab0e9a3858eb72a7e508 Mon Sep 17 00:00:00 2001 From: Apoorv Mishra Date: Fri, 6 Sep 2024 16:35:59 +0530 Subject: [PATCH] fix: jsdoc --- app/menus/DocumentMenu.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/menus/DocumentMenu.tsx b/app/menus/DocumentMenu.tsx index d50d92e584..e07d3c5657 100644 --- a/app/menus/DocumentMenu.tsx +++ b/app/menus/DocumentMenu.tsx @@ -61,17 +61,25 @@ import { documentEditPath } from "~/utils/routeHelpers"; import { MenuContext, useMenuContext } from "./MenuContext"; type Props = { + /** Document for which the menu is to be shown */ document: Document; isRevision?: boolean; /** Pass true if the document is currently being displayed */ showDisplayOptions?: boolean; + /** Whether to display menu as a modal */ modal?: boolean; + /** Whether to include the option of toggling embeds as menu item */ showToggleEmbeds?: boolean; showPin?: boolean; + /** Label for menu button */ label?: (props: MenuButtonHTMLProps) => React.ReactNode; + /** Invoked when the "Find and replace" menu item is clicked */ onFindAndReplace?: () => void; + /** Invoked when the "Rename" menu item is clicked */ onRename?: () => void; + /** Invoked when menu is opened */ onOpen?: () => void; + /** Invoked when menu is closed */ onClose?: () => void; };