Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
796 B
Raw Blame
'use client'

import { RowActionMenu } from '@clerum/frontend-components'
import type { RowActionsMenuProps } from './types'

export type { RowActionMenuItem } from './types'

/** Control UI compatibility adapter for the shared cross-application action menu. */
export function RowActionsMenu({ ariaLabel, actions, horizontalTrigger }: RowActionsMenuProps) {
  return (
    <RowActionMenu
      actions={actions.map(action => ({
        key: action.key,
        label: action.label,
        onSelect: action.onClick,
        danger: action.danger,
        disabled: action.disabled,
        disabledReason: action.disabledReason,
      }))}
      ariaLabel={ariaLabel}
      menuClassName="cu-kebab__menu--portal"
      triggerVariant={horizontalTrigger ? 'horizontal' : 'vertical'}
    />
  )
}