Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const handleCtxClick = (x: Menus.OnClickData): TaskOption> => pipe(
x.menuItemId,
O.fromPredicate(isContextMenuEntry),
TO.fromOption,
TO.chain(contextClickTabs(O.fromNullable(x.pageUrl))),
);