Files
twenty/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isHeadlessFrontComponentCommandContextApi.ts
T
Raphaël Bosi 49afe5dbc4 Refactor: Unify command menu item execution (#18908)
- Makes engineComponentKey non-nullable on CommandMenuItem. Adds two new
engine component keys: TRIGGER_WORKFLOW_VERSION and
FRONT_COMPONENT_RENDERER to cover the former standalone cases.
- Unifies the previously separated engine, front component and workflow
runners into a single `CommandRunner` component with a unified
`useMountCommand` hook that handles all command types.
2026-03-24 15:59:52 +00:00

10 lines
350 B
TypeScript

import {
type HeadlessCommandContextApi,
type HeadlessFrontComponentCommandContextApi,
} from '@/command-menu-item/engine-command/types/HeadlessCommandContextApi';
export const isHeadlessFrontComponentCommandContextApi = (
state: HeadlessCommandContextApi,
): state is HeadlessFrontComponentCommandContextApi =>
'frontComponentId' in state;