import { WorkflowActionType } from '@/workflow/types/Workflow';

export const RECORD_ACTIONS: Array<{
  label: string;
  type: Extract<
    WorkflowActionType,
    'CREATE_RECORD' | 'UPDATE_RECORD' | 'DELETE_RECORD' | 'FIND_RECORDS'
  >;
  icon: string;
}> = [
  {
    label: 'Create Record',
    type: 'CREATE_RECORD',
    icon: 'IconPlus',
  },
  {
    label: 'Update Record',
    type: 'UPDATE_RECORD',
    icon: 'IconReload',
  },
  {
    label: 'Delete Record',
    type: 'DELETE_RECORD',
    icon: 'IconTrash',
  },
  // TODO: Add search records action
  // {
  //   label: 'Search Records',
  //   type: 'FIND_RECORDS',
  //   icon: 'IconSearch',
  // },
];
