Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default function SlideInMenu(state: State) {
const {itemMenu} = state;
const {type, target, opened} = itemMenu;
return h(
Menu,
{
sel: 'slide-in-menu',
renderer: renderers.SlideInMenu,
opened,
},
[
h(MenuTrigger, {disabled: true}),
h(
MenuOptions,
type === 'conn'
? connMenuOptions(target)
: type === 'room'
? roomMenuOptions()
: type === 'staging'
? stagingMenuOptions()
: type === 'staged-room'
? stagedRoomMenuOptions()
: type === 'invite'
? inviteMenuOptions()