Skip to content

Commit

Permalink
feat: add MenuSeparator component
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaro-cuesta committed Dec 27, 2024
1 parent 200125c commit 484a882
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export const MenuItem: FC<MenuItemProps> = findModuleExport(
e?.render?.toString?.()?.includes('bPlayAudio:') || (e?.prototype?.OnOKButton && e?.prototype?.OnMouseEnter),
);

export const MenuSeparator: FC = findModuleExport(
(e: Export) => typeof e === 'function' && /className:.+?\.ContextMenuSeparator/.test(e.toString()),
);

/*
all().map(m => {
if (typeof m !== "object") return undefined;
Expand Down

0 comments on commit 484a882

Please sign in to comment.